<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>
New Document
</title>
</head>
<body>
<div id='test' οnclick='return false;'>
<script language="javascript">
< !--
var args = test(document.getElementById('test'));
function test(dom) {
var attributes = dom.attributes;
var args = {};
for (var index = 0; index < attributes.length; index++) {
var node = attributes[index];
var nodeName = node.nodeName;
//节点属性的specified说明
if (node.specified) {
document.write(nodeName + ' : ' + node.specified + '<br />');
}
}
}
//-->
</script>
</body>
</html>