Share this Page URL

Chapter 17. The Programmable Page: Addin... > Some JavaScript Examples - Pg. 203

The Programmable Page: Adding JavaScripts to Your Pages 203 Figure 17.8. This page uses JavaScript to scroll a message along the browser's status bar. Detecting the User's Browser For the final example in this chapter, I show you how to determine which browser the user is surfing with. Why would you care? Well, you might want to send the surfer to a page that's been customized for her browser. JavaScript offers two statements that return browser info: · navigator.appName--This returns the name of the browser.