dump out several browser objects
This commit is contained in:
parent
453aa1a50f
commit
df678ad760
|
@ -54,7 +54,7 @@ document.write(navigator.appName + "<br><br>");
|
|||
<script language="JavaScript" type="text/javascript">
|
||||
for (var n in window.navigator) {
|
||||
document.write("<tr>");
|
||||
document.write("<th align='left'>" + n + "<\/th>");
|
||||
document.write("<th align='left'>window.navigator." + n + "<\/th>");
|
||||
document.write("<th align='left'>" + window.navigator[n] + "<\/th>");
|
||||
document.write("<\/tr>");
|
||||
}
|
||||
|
@ -62,5 +62,67 @@ document.write(navigator.appName + "<br><br>");
|
|||
</table>
|
||||
|
||||
|
||||
<h2>All objects in window.screen.orientation</h2>
|
||||
<table>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
for (var n in window.screen.orientation) {
|
||||
document.write("<tr>");
|
||||
document.write("<th align='left'>window.screen.orientation." + n + "<\/th>");
|
||||
document.write("<th align='left'>" + window.screen.orientation[n] + "<\/th>");
|
||||
document.write("<\/tr>");
|
||||
}
|
||||
</script>
|
||||
</table>
|
||||
|
||||
<h2>All objects in window.screen</h2>
|
||||
<table>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
for (var n in window.screen) {
|
||||
document.write("<tr>");
|
||||
document.write("<th align='left'>window.screen" + n + "<\/th>");
|
||||
document.write("<th align='left'>" + window.screen[n] + "<\/th>");
|
||||
document.write("<\/tr>");
|
||||
}
|
||||
</script>
|
||||
</table>
|
||||
|
||||
<h2>All objects in window</h2>
|
||||
<table>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
for (var n in window) {
|
||||
document.write("<tr>");
|
||||
document.write("<th align='left'>window." + n + "<\/th>");
|
||||
document.write("<th align='left'>" + window[n] + "<\/th>");
|
||||
document.write("<\/tr>");
|
||||
}
|
||||
// window.outerWidth = 2100;
|
||||
</script>
|
||||
</table>
|
||||
|
||||
<h2>All objects in document</h2>
|
||||
<table>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
for (var n in document) {
|
||||
document.write("<tr>");
|
||||
document.write("<th align='left'>document." + n + "<\/th>");
|
||||
document.write("<th align='left'>" + document[n] + "<\/th>");
|
||||
document.write("<\/tr>");
|
||||
}
|
||||
</script>
|
||||
</table>
|
||||
|
||||
<a href="stuff" onMouseOver="alert('onMouseOver')">Test onMouseOver event</a><br>
|
||||
|
||||
<script>
|
||||
document.write("<img src='favicon.ico'>")
|
||||
/*
|
||||
var x=window.confirm("Are you sure you want to quit")
|
||||
if (x)
|
||||
window.alert("Thank you.")
|
||||
else
|
||||
window.alert("OK. Cancel. Good choice.")
|
||||
*/
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue