• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 2. Creating a Simple Script > Workshop: Hiding Scripts from Older Browsers

Workshop: Hiding Scripts from Older Browsers

Since older browsers don't understand the <SCRIPT> tag, they will not behave very well when they encounter a script in a Web page. In most cases, they will display the script in the middle of the page—probably not the effect you were looking for.

To avoid this, you can enclose the script within HTML comment tags. This tells older browsers to ignore the script completely. Newer browsers are smart enough to know that your script isn't really a comment.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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