• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Attaching Scripts

The alternative to embedding is attaching, where you put the JavaScript in a separate file. However, for a Web page to use the external script, you have to tell the browser where to find it.

To do this, you use the src attribute of the script tag, like so:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint