summaryrefslogtreecommitdiff
path: root/test/js/dom-node-enumerate.html
blob: 6cbff24385450638683282c53f8fceb481bca748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
<head>
<title>Node interface enumeration</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>Node interface enumeration</h1>

<script>
function output(x,y) {
    document.body.appendChild(document.createTextNode(x));
    document.body.appendChild(document.createTextNode(" = "));
    document.body.appendChild(document.createTextNode(y));
    document.body.appendChild(document.createElement('br'));
}
for(var key in Node){
output(key, Node[key]);
}
</script>
</body>
</html>