Hello folks!
I was wondering if it is possible to direct users to a page that I have optimized for Netscape 7? The current script that I am using directs all users to a page that is Netscape 6 optimized, even if they are using the Netscape 7 browser.
In other words, If someone is using 7, can I have them go to a specific page that is different from someone who is using the 6 browser?
Thanks you for your time and consideration!
Kind regards,
Greg
Here's the code that I will be using:
----------------------------------------------------------------------------------
<script>
//Browser redirect Script- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and Terms Of Use,
//visit dynamicdrive.com
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
//if NS 6
if (browser_type=="Netscape"&&browser_version>=5)
window.location.replace("http://mozilla.org")
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
window.location.replace("http://microsoft.com")
//if NS4+
else if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("http://www.netscape.com")
//Default goto page (NOT NS 4+ and NOT IE 4+)
else
window.location="http://www.dynamicdrive.com"
</script>
I was wondering if it is possible to direct users to a page that I have optimized for Netscape 7? The current script that I am using directs all users to a page that is Netscape 6 optimized, even if they are using the Netscape 7 browser.
In other words, If someone is using 7, can I have them go to a specific page that is different from someone who is using the 6 browser?
Thanks you for your time and consideration!
Kind regards,
Greg
Here's the code that I will be using:
----------------------------------------------------------------------------------
<script>
//Browser redirect Script- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and Terms Of Use,
//visit dynamicdrive.com
var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
//if NS 6
if (browser_type=="Netscape"&&browser_version>=5)
window.location.replace("http://mozilla.org")
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
window.location.replace("http://microsoft.com")
//if NS4+
else if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("http://www.netscape.com")
//Default goto page (NOT NS 4+ and NOT IE 4+)
else
window.location="http://www.dynamicdrive.com"
</script>
Comment