DreamweaverMX Tutorials

8. Javascript

8.1 rationale

Javascript is a scripting language developed by Netscape; it is the primary scripting language used on the Web. Other languages include perl and vbsript, but javascript is by far the most popular.
  1. Javascript can be used to provide navigation feedback. Before CSS-compliant browsers, navigation feedback was provided primarily by using javascript mouseovers. This tutorial will address three kinds of mouseover.
  2. Javascript can also be used to detect browser version and serve up the proper CSS stylesheet.
  3. Javascript is often used in form validation. This is a type of error prevention -- a javascript alert advises the web customer that she had improperly completed a form field before submitting the form to the web server. Thus the correction can be made before the interchange between browser (client) and web server.

demo

  1. Right-click the javascript file and save it to your hard drive. Open it in Dreamweaver. You will not be able to open this file in MSIE but you can open it with Netscape or Mozilla.
next previous PDF print home