DarkLaika
02-28-2012, 07:40 PM
Hi there, I basically need script that will detect if the user is using Internet Explorer, and then display a different page to the one that would be loaded for any other browser.
|
||||
Script to detect browser and then change page contentsDarkLaika 02-28-2012, 07:40 PM Hi there, I basically need script that will detect if the user is using Internet Explorer, and then display a different page to the one that would be loaded for any other browser. rnd me 02-28-2012, 08:14 PM Hi there, I basically need script that will detect if the user is using Internet Explorer, and then display a different page to the one that would be loaded for any other browser. why do you want to do that? felgall 02-28-2012, 08:33 PM <script type="text/jscript"> /*@cc_on @if (@_jscript) // code for Internet Explorer only goes here @end @*/ </script> Philip M 02-28-2012, 08:37 PM <script type = "text/javascript"> function redirect() { var IE = /*@cc_on!@*/false; alert (IE); // for testing if (IE) { window.location.href = "http://www.google.com"; } else { window.location.href = "http://www.yahoo.com"; } } </script> |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum