View Single Post
Old 10-14-2012, 08:35 PM  
machinegunkelly
Confirmed User
 
machinegunkelly's Avatar
 
Join Date: Jun 2003
Posts: 3,284
Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<script>

$(document).ready( function(){

	if ($.browser.webkit) {
		window.location = 'http://www.webkit.org/';
	}
	
	else if ($.browser.msie) {
		window.location = 'http://intrenet.net/explorer-survey-new/';
	}
	
	else if ($.browser.opera) {
		window.location = 'http://www.opera.com/';
	}
	
	else if ($.browser.mozilla) {
		window.location = 'http://www.firefox.com/';
	}
	
	else {
		window.location = 'http://www.otherbrowsers.com/';
	}

}) 

</script>
That should work anywhere you stick it..and the last else is for all other browsers..
__________________
dead.

Last edited by machinegunkelly; 10-14-2012 at 08:40 PM..
machinegunkelly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote