[thelist] Javascript - Browser detection
Terry Fowler
one_webdude at yahoo.com
Mon Nov 20 09:51:15 CST 2000
--- Zoe Oughton <zoe.oughton at btconnect.com> wrote:
> Hi Listees
>
> I have a JavaScript which detects the users browser
> and incorporates
> different style sheets depending on the browser.
> The four different style sheets I have at the moment
> are for:
> Windows: Internet Explorer
> Windows: Netscape
> Mac: Internet Explorer
> Mac: Netscape
>
> This has been fine so far, however with the new
> browsers, IE 5 and Netscape
> 6, I feel that I now need at least 2 other options
> for the Mac:
> Mac: Internet Explorer 5 and above
> Mac: Netscape 6 and above
>
> and possibly:
> Windows: Netscapte 6 and above.
>
> By adding these extra options will provide me with
> more control, but I am
> not sure how to add this extra detection into the
> JavaScript I use at the
> moment. Are there any JavaScript Guru's who could
> help me add a small bit
> of code for this extra detection.
>
There is an article on this topic at:
http://developer.netscape.com/viewsource/krock_v5.html
It's called "Updating Your JavaScript and CGI Scripts
for Version 5 Browsers."
HTH,
Terry Fowler
__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/
More information about the thelist
mailing list