Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I have put the following code in the header:

<HTML>
<HEAD>
<script type="text/javascript">
function detectBrowser(){var browser=navigator.appName
var b_version=navigator.appVersion
var version=parseFloat(b_version)
if ((browser=="Safari"||browser=="Konqueror"||browser=="Microsoft Internet Explorer")
&& (version>=0)) {alert("Your browser environment is not fully supported!")}}
</script>
</HEAD>
<body onload="detectBrowser()">
</body>
</HTML>

The "Microsoft Internet Explorer" detection works on my PC. I just don't get it why the Safari and Konqueror detection does not. I have found the tip at http://www.w3schools.com/js/js_browser.asp
 
euromickey said:
var browser=navigator.appName
var b_version=navigator.appVersion
var version=parseFloat(b_version)
if ((browser=="Safari"||browser=="Konqueror"||browser=="Microsoft Internet Explorer")
&& (version>=0)) {alert("Your browser environment is not fully supported!")}}


Stick an alert in your code to test the return value of navigator.appName, or in your case the 'browser' variable... you should find this is actually "Netscape" for the Safari browser, hence your problem.

check out the Safari FAQ

hope this helps!
 
I have now updated the navigator.appName to browser=="Netscape".
Can you see the alert now? Will Firefox users see it as well?
 
Clicking your link, I get a "Are all product varients blah blah" in Safari running Tiger 10.4.2.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.