Troubleshooting

Getting Scripts to Work

Q1:Why won't my simplest scripts work?
Proper syntax is always a concern in programming. Consequently, it is important to pay strict attention to detail when writing scripts. If you mean for a particular parameter to be a string, for example, you will run into trouble if you forget to enclose it in quotation marks when you type it.

Properly Placing Your Scripts

Q1:Is there a difference in where I put my scripts on the HTML page?
The scripts you write are interpreted as part of your Web browser's HTML parsing process. This means that if the script you create is located inside the <HEAD> tag in a document, it will be interpreted before any of the <BODY> tag is looked at. If you have objects that are created in the <BODY> tag, they don't exist at the instant the <HEAD> is being parsed and, therefore, can't be manipulated by the script.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset