Assignment008
JavaScript Properties II
JavaScript is a scripting language that uses objects. For example, your browser window is an object, which contains the navigator object. The navigator object is the browser you are using. We can refer to these objects via JavaScript by using "navigator."
The following includes several properties of the navigator object. These properties are referenced with the following code:
window.navigator.appName - This property gives the application name (Netscape, IE...)
window.navigator.appVersion - This property gives the version of the application.
window.navigator.cookieEnabled - This property specifies whether cookies are enabled
Here are the navigator properties for this page:
<script language="javascript" type="text/javascript">
// The + symbol is used to put text together. It allows you to display javascript values along with text
window.document.write("<p><strong>Browser Application Name:</strong> " + window.navigator.appName +"<br><strong> Browser Version:</strong> " +window.navigator.appVersion + "<br><strong>Cookie Enabled:</strong>" +window.navigator.cookieEnabled + "</p>" );
</script>