Hi everybody,
I'm tryin' to prevent users from browsin' my website usin' Netscape, I'm usin' the followin' code:
<script language="javascript">
<!--
function detect_browser()
{
if (navigator.appName != "Microsoft Internet Explorer"
{
alert("Please use IE to browse this Website."
window.close();
}
}
-->
</script>
<BODY onLoad="detect_browser()"></BODY>
But when I browse the website usin' Netscape, I get the alert message, but Netscape shows a dialog box asking me if I wish to close the window or not. I wanna close the window without askin' the users. The window.close() works good with IE.
With regards
I'm tryin' to prevent users from browsin' my website usin' Netscape, I'm usin' the followin' code:
<script language="javascript">
<!--
function detect_browser()
{
if (navigator.appName != "Microsoft Internet Explorer"
{
alert("Please use IE to browse this Website."
window.close();
}
}
-->
</script>
<BODY onLoad="detect_browser()"></BODY>
But when I browse the website usin' Netscape, I get the alert message, but Netscape shows a dialog box asking me if I wish to close the window or not. I wanna close the window without askin' the users. The window.close() works good with IE.
With regards