Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

Which Script Runs First?

As you learned in Hour 1, you can actually have several scripts within a Web document: one or more sets of <script> tags, and any number of event handlers. With all of these scripts, you might wonder how the browser knows which to execute first. Fortunately, this is done in a logical fashion:

Share ThisShare This

Informit Network