Back to Index Page


This browser detection script uses the properties of the navigator object to identify which browser is accessing the file. Due to differences in each browser's JavaScript support, it becomes necessary for the developer to provide alternate content for each browser version. The developer can use the unique characteristics of each browser to determine what level of JavaScript support that the browser provides, and use branching statements to direct the browser to the appropriate content.

Additionally, the <NOSCRIPT> tag can be used to provide content for browsers that lack JavaScript support altogether. This container, ignored by compliant browsers, can contain links, static content, browser updates, or other alternative information.

Print this Page || Browser Detection Using Objects