View Full Version : refuse browser script
hi im trying to find a script for my site that will refuse brouser access unless its firefox? if thats not possible at least getting a script that will refuse ie would be great thanks guys
it has to be something like this right ?
<script language="javascript">
function scan() {
var ver=navigator.appVersion;
var isMSIE = (!(window.opera) && ver.indexOf("MSIE") != -1) ? 1 : 0;
if (isMSIE) {
alert("This link will not work in Internet Explorer");
} else {
if (pluginversion == 2) {
updatewindow("0", "http://mysite.com/thispage.php");
} else {
updatewindow("0", "http://mysite.com/thispage.php");
}
}
return false;
}
</script>
Medyman
05-25-2008, 11:05 PM
You can detect the browser version with JavaScript (http://www.w3schools.com/js/js_browser.asp) and display browser-specific content, but the question is why would you want to? Firefox doesn't have the market share of IE. By disabling your site to IE, you're alienating 60+ percent of Internet users...is that something you really want?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.