In my enterprise all clients have a default html page that gets loaded when they
initiate a web browser. I would like to put some logic in this page to get them to
one of two actively running servers.
I am thinking my code should look like this but not sure. Is this possible??
<script language="JavaScript1.1">
function redirect()
{
if (http://server1.com is running)
{
window.location="http://server1.com";
}
else
{
window.location="http://server2.com";
}
}
</script>
</head>
<body onload="redirect()"></body></html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists