Previous Example-|-Next Example-|-Return to Chapter Listing
Example 4.3:
Undefined Variables
Click on the button to see what happens when you use text2, an undefined variable. Netscape Navigator displays a message saying that the variable is undefined (it's really uninitialized). Internet Explorer simply displays a blank message box.
This is the script we used. First, we put this in the HEAD:
Then we created this button:
Previous Example-|-Next Example-|-Return to Chapter Listing