S
Sonia
Hi,
I've www.maindomain.com/client which redirects the user to an other domain
using the script below.
I'd like to add an If statement to the same script that when the server
hosting www.mydomain.com is not available, the client is sent to
www.maindomain.com/sysdown.htm.
Can it be done and if so, how?
TIA
Sonia
<head>
<script>
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:// www.mydomain.com")
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
window.location.replace("http:// www.mydomain.com ")
//if NS4+
else if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("http:// www.mydomain.com ")
//Default goto page (NOT NS 4+ and NOT IE 4+)
else
window.location="http://www.mydomain.com"
</script>
</HEAD>
I've www.maindomain.com/client which redirects the user to an other domain
using the script below.
I'd like to add an If statement to the same script that when the server
hosting www.mydomain.com is not available, the client is sent to
www.maindomain.com/sysdown.htm.
Can it be done and if so, how?
TIA
Sonia
<head>
<script>
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:// www.mydomain.com")
//if IE 4+
else if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)
window.location.replace("http:// www.mydomain.com ")
//if NS4+
else if (browser_type=="Netscape"&&browser_version>=4)
window.location.replace("http:// www.mydomain.com ")
//Default goto page (NOT NS 4+ and NOT IE 4+)
else
window.location="http://www.mydomain.com"
</script>
</HEAD>