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

Exercises

If you want to gain more experience detecting browsers in JavaScript, perform these exercises:

  • Create a script (similar to Listing 16.3) that sends users of IE 5.0 or Netscape 6.0 to one page and users of earlier versions to a different page.

  • Modify the example in Listing 16.5 to assign a separate specific code to the browser variable for 3.x versions of IE or Netscape.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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