PDA

View Full Version : Browser Sniffer Script (version 1.1). How to redirect users?



tp4fp
02-10-2008, 04:27 AM
1) Script Title: Browser Sniffer Script (version 1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/browsersniffer.htm

3) Describe problem: How can I get it so that if the user is using any of those browsers, it redirects to index_1.htm but if they are using a different browser than the ones in the script, it redirects to index_2.htm ?

jscheuer1
02-10-2008, 05:18 AM
if (!exclude)
window.location.href='index_1.htm';
else
window.location.href='index_2.htm';