Detecting Netscape
2
Ever noticed that with the new Netscape, which allows you to view your pages in FireFox or IE Display mode, when in IE mode:
navigator.appName
Thinks Internet Explorer is actually being run, rather than Netscape?
Well below is the code you need to get around this problem.
navigator.appName
Thinks Internet Explorer is actually being run, rather than Netscape?
Well below is the code you need to get around this problem.
<script type="text/javascript">
var agt = navigator.userAgent.toLowerCase();
var browser = agt.indexOf('netscape');
if (browser != -1){
alert("You are using netscape.");
}
</script>






There are currently no comments for this snippet.