Browser Version on Page
This script writes the viewer's browser name and browser version onto your page.
Script Code
Grab a copy of the file below and place it in the same directory as the Web page on which
you will use the script (if you wish to place the script file in a different directory
you will need to make the necessary adjustments to the src attribute of the script tag
that calls it).
sdetect4.js
The code below should be placed between the <body> and </body> tags where
you want the text to appear.
Example
A working sample of the script is shown below.
Options
You can edit the appearance of the text by adding the
browser_name ID to
your style sheet and adjusting as desired.
You can change the message text itself by editing the line below in the sdetect1.js
file. Be careful with the variables on the line.
b_span.innerHTML = "You are using "+navigator.appName+" "+navigator.appVersion;
Accessibility
A server side script, java applet, or plugin may be able to provide the same information
as a backup if necessary.
Copyright © 1998-2008
The Web Design Resource. All rights reserved. See script or author's information for copyright information on the
individual scripts and/or writing.
Disclaimer