Examples of JavaScript

Click here to return.

Example 1
This is an example of JavaScript. It detects the type of browser the user is viewing through, then can automatically send the web page to the viewer's printer. Browsers other than Netscape are detected by a class ID number. Netscape allows JavaScript to check the browser's version number by using "navigator.appVersion." 
Example 2
This drop-down menu allows the user to choose what page, in this case my examples, they would like to go to. It's a basic form that uses JavaScript to post the URL in the location bar of the browser in place of what is currently there. The way I have written the script, there is no need for a "Go" button, the user simply chooses a page & they are immediately taken to it. 
To view more examples of JavaScript, check out my DHTML Example page. DHTML utilizes JavaScript to a large extent. 

Contact me at: [email protected] (at home) or [email protected] (at work)