dump out window.navigator object

This commit is contained in:
Jeff Carr 2017-11-29 09:23:02 +00:00
parent 5031e98cd9
commit 453aa1a50f
1 changed files with 15 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<title>check.wit.com</title>
<style>
body {
width: 35em;
width: 100em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
@ -46,8 +46,21 @@ document.write(navigator.appName + "<br><br>");
<br>
<FORM>
<INPUT TYPE="text" VALUE= "dont change" NAME = "leavebutton"
onChange= "alert('Please dont change this')">
onChange= "alert('changing this will cause an alert')">
</FORM>
<h2>All objects in window.navigator</h2>
<table>
<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("<\/tr>");
}
</script>
</table>
</body>
</html>