Click to See Complete Forum and Search --> : Redirect a browser to another page


SyllasR
09-10-2003, 11:55 AM
Hello all,

In our public web site there is a web page that contains a link to a dedicaded web site like the following:
HTTPS://OurCompanyWebSite.ca/AuthenticatedClients.asp.
All our clients access the dedicaded server from the public web site using this link.
Everything works fine.
But the javascript I want should be able to redirect our clients to another page when the dedicaded server is down. I would like this script to be compatible to the most popular browsers

Thanks in Advance !

Syllas

96turnerri
09-10-2003, 01:04 PM
something like this?

<SCRIPT LANGUAGE="JavaScript">
var name = navigator.appName
if (name == "Microsoft Internet Explorer")
url=("msie.html");
else
url=("netscape.html")
document.write('<A HREF="' + url + '">Enter</A>');
</SCRIPT>