By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

fastest way to redirect browser on detection of brower type

P: n/a
hi all

what is the quickest way to the redirect the user's browser to another
page dependent upon what browser they have? Ideally id like it to occur
b4 the page content loads (which can take a while)

regards

marc

Aug 28 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
libsfan01 said the following on 8/28/2006 5:09 PM:
what is the quickest way to the redirect the user's browser to another
page dependent upon what browser they have?
Considering that you can't reliably detect the browser the answer to
your question is you can't. Not before the page loads, nor after it
loads, unless you ask the user.
Ideally id like it to occur b4 the page content loads (which can take a while)
And ideally, most people would appreciate you taking the time to spell
and punctuate properly as it makes it a lot easier to read.

The solution to your problem is to stop trying to determine the browser,
write cross-browser code and degrade gracefully.

How do I detect Opera/Netscape/IE?
<URL: http://jibbering.com/faq/#FAQ4_26>

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 28 '06 #2

P: n/a
libsfan01 wrote:
>
what is the quickest way to the redirect the user's browser to another
page dependent upon what browser they have? Ideally id like it to occur
b4 the page content loads (which can take a while)
Marc, it is not possible to determine accurately or consistently what
browser is being used. Your page should work with *all* browsers
regardless of what they are. This is the fastest and most efficient way
both to use the web pages *and* to write them in the first place.
Aug 29 '06 #3

P: n/a
Sym

Randy Webb wrote:
libsfan01 said the following on 8/28/2006 5:09 PM:
Ideally id like it to occur b4 the page content loads (which can take a while)

And ideally, most people would appreciate you taking the time to spell
and punctuate properly as it makes it a lot easier to read.

alt.usage.english perhaps
;)

Aug 29 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.