19 lines
496 B
JavaScript
19 lines
496 B
JavaScript
|
<html>
|
||
|
<head>
|
||
|
<title>Happy Codings :-) JavaScript Code Examples</title>
|
||
|
<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>
|