FireFox checker - see if using firefox *for cms*

Newbie Spellweaver
Joined
Apr 18, 2008
Messages
84
Reaction score
1
SS :

Stars0fLight - FireFox checker - see if using firefox *for cms* - RaGEZONE Forums


Place this at the top of your html/php/htm file
PHP:
<script>
function detectBrowser() {
	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);
		if ((browser=="Netscape") && (version>=4)) {
		}
		else {
			alert("Please use FireFox for best viewing of this site. ~Stars");
		}
}
</script>

Change the
alert("Please use FireFox for best viewing of this site. ~Stars");
to your likeing
 
Re: [Release] FireFox checker - see if using firefox *for cms*

I don't believe this detects whether or not the browser implements different rendering engines, Gecko for example. In most cases, it wouldn't matter though.

However, nice googling.
 
Re: [Release] FireFox checker - see if using firefox *for cms*

Why would you want them limited to firefox? What about Opera and Safari and all the others?
 
Back