Access window properties
<html>
<head>
<script language="JavaScript">
<!--
function showResults(obj, name) {
document.writeln("<table cellpadding=5 border=1><tr><td align=middle><b><font size=-1>" + name + "</font></b></td></tr>");
for (i in obj) {
document.writeln("<td><font size=-1>" + i + "</font></td>");
document.writeln("</table><p>");
}
}
showResults(document, "document");
showResults(window, "window");
//-->
</script>
</head>
</html>
Related examples in the same category