Part 1—Compare body and header scripts
- In Firefox, click the File menu and select Open File.
- Open header.html. Does the alert pop up? What shows on the screen before you click OK?
- Repeat Step 1 and open body.html. What shows on the screen before you click OK?
- What difference does placement of the script make?
If your scripts didn't work, use the Firefox Error Console to find your errors and fix them. It works a lot like the Validator. It gives an error message and the line number in your code.
In the next page, you will fix some simple errors in a script....
|
|
Firefox Error Console
- In Firefox, Tools > Error Console
- Clear
- Reload page the long way—highlighting URL and pressing Enter (clicking the refresh button only partly reloads the page)
- Check for errors. Find the line and correct the error.
|
|