Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

browser detection + redirect

Status
Not open for further replies.

kettch

Programmer
Mar 5, 2001
110
US
how do i create a script that will detect the difference between IE 5 and IE 5.5? I wrote a website that uses CSS and only 5.5 supports it to the degree that will make the page look good. So what i want is to make a seperate page with minimal CSS that will work for IE 4.0 and IE 5.0. So what must i do to establish that i only want 5.5

i know the basic structure but not the intricacies of javascript in order to actually write viable code.
something like:?
if browser="MSIE5.5" window.location="IE5p5.html" else window.location="IE5.html"
 
Hi ketth,

try this
-----------------------------------------
browser = navigator.appVersion
if (browser.indexOf("5.5")>-1)
window.location="IE5p5.html"
else
window.location="IE5.html"
-----------------------------------------

hope this helps =)
Chiu Chan
cchan@gefmus.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top