Previous Example-|-Next Example-|-Return to Chapter Listing
Example 17.2:
You Can't Name a Form Within a Function
We are using three different ways to refer to information in a form. Type something into the form, then click on the buttons to display an Alert box showing that information. All three methods may work on your browser. But on some early JavaScript browsers (Netscape 2 and early 3 betas) the first two will not work. They should work in Netscape 3 and Internet Explorer 3. We advise you to avoid the first two methods for backward compatibility.
This is the script we used. In the HEAD...
Then this form:
Previous Example-|-Next Example-|-Return to Chapter Listing