JS

JavaScript Demos:
Get and Display Browser Properties.

jim.cerny@unh.edu   13-AUG-1998



Discussion.

This example is taken from a a discussion by Lori Hylan in the Dynamic HTML Zone's Articles. See also the discussion in Nick Heinle's "Designing with JavaScript" book, Chapter 6.

Notice that the script is contained within the BODY section, not within the HEAD.

JavaScript can determine properties of the navigator (browser) object. All this example does is show what those properties are and display them on the screen. Much more powerful use can be made of the information, such as checking for a browser version, or plug-in, or mime-type and then determining what to present on-screen based on that information.