<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
function thisTest(obj) {
alert(obj.getAttribute('dept'));
}
function showguid(){
var a=document.getElementById("guid");
a.onclick=function(event){
alert(a.getAttribute('guid'));
a.setAttribute('guid','5555555555555555')
}
}
</script>
</head>
<body onload="showguid();">
<form id="form1" runat="server">
<div>
<input type="button" name="thistest" id="thistest" value="this" guid="1111111111111111111"
dept="总部" onclick="thisTest(this)" />
<input type="button" guid="2222222222222" id="guid" value="guid"></input>
</div>
</form>
</body>
</html>