2. Start Me Up!
Enough of the warm up; it’s time to get scripting. In this chapter, you’ll learn where to put your scripts in your HTML; how you can leave comments in your scripts so that you can more easily understand them at a later time; and how you can use scripts to communicate with the user. You’ll also see how to make the page automatically change to another page (called redirection). Let’s get to it!
Tag | Attribute | Meaning |
---|---|---|
html | Contains the HTML part of the Web page | |
head | Contains the header part of the Web page | |
script | Contains the Web page’s script or a reference to the external script file. Usually JavaScript, but not always. | |
type | The programming language for the script. Required attribute. | |
src | The location ... |
Get JavaScript and Ajax for the Web: Visual QuickStart Guide, Seventh Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.