View Single Post
Old 10-14-2012, 07:12 AM  
milkhead
Confirmed User
 
Join Date: Sep 2009
Posts: 186
Quote:
Originally Posted by machinegunkelly View Post
jquery.

easy peasy.

Code:
$(document).ready( function(){

	if ($.browser.webkit) {
		window.location = 'http://www.google.com/';
	}
	
	else if ($.browser.msie) {
		window.location = 'http://www.yahoo.com/';
	}
	
	else if ($.browser.opera) {
		window.location = 'http://www.opera.com/';
	}
	
	else if ($.browser.mozilla) {
		window.location = 'http://www.firefox.com/';
	}

})
etc ...

http://api.jquery.com/jQuery.browser/
thanks for your help machinegunkelly. quick question though, where do i put the code? Like does it go in the body tag, head tag or etc and how do I put something for all other browser goto page whatever.com.
milkhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote