netsurf/test/js/dom-body-enumerate.html

29 lines
752 B
HTML

<html>
<head>
<title>Body element interface enumeration</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>Body element interface enumeration</h1>
<noscript><p>Javascript is disabled</p></noscript>
<script>
function output(x,y) {
document.body.appendChild(document.createTextNode(x));
document.body.appendChild(document.createTextNode("("));
if (y != undefined) {
document.body.appendChild(document.createTextNode(y.length));
}
document.body.appendChild(document.createTextNode(") = "));
document.body.appendChild(document.createTextNode(y));
document.body.appendChild(document.createElement('br'));
}
for(var key in document.body){
output(key, document.body[key]);
}
</script>
</body>
</html>