Jump to content

Browser Detection


cdoggg94

Recommended Posts

Basically we have a lot of people that want to view our site that use work computers and don't have the option to upgrade their browser.  Most likely its an old version of IE.

All I want to do is detect if they are using something older then say IE 7. (we have tested with IE 7 and everything works fine on it) 

 

If it IS older then that I want to send them to a dumbed down version of the pages.

 

I have looked up things like this:
 

http://www.quirksmode.org/js/detect.html
http://api.jquery.com/jQuery.browser/

Which is fine, but I dont know how to simply send them to the right page.

I have done this sort of thing if they were using a mobile device like this:

 

<script type="text/javascript"> // <![CDATA[
	if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1)) {
		document.location = "http://www.Website.com/Mobile/";
	} // ]]>
	
		if ((navigator.userAgent.indexOf('iPad') != -1)) {
		document.location = "http://www.Website.com/Mobile2/";
	} // ]]>
</script>

 

Would it be the same type of thing but with the information in the detection script replacing the "iPhone", "iPad" ?

 

Any help would be great.

 

Thanks.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.