netsurf/test/js/dom-node-enumerate.html
2012-11-16 15:31:14 +00:00

28 lines
642 B
HTML

<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]);
}
document.body.appendChild(document.createElement('hr'));
for(var key in document.body){
output(key, document.body[key]);
}
</script>
</body>
</html>