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

Chapter 19. Javascript Surfing: The Loca... > Surfing Under Script Control

Surfing Under Script Control

One of the most useful and most powerful JavaScript features is the capability to send the user's browser to a particular page under script control. For example, you could use the "browser sniffer" script from Chapter 16, "Controlling the Browser: The Navigator Object," to first determine which browser the user is running. Given that, you could then redirect the user to a page designed specifically for that browser.

This capability is a crucial part of setting up a navigation system on your pages. For example, it's possible to set up a <select> list and assign a page address to each item. When the user selects an item from the list, a script takes him automatically to the associated page. Other site surfing systems such as navigation trees and menu systems require the same capability.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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