C
Christoph
The following script works fine on two Webservers in the internet, but it
doesn't work on my local Webserver (Xitami). I also tried the IIS, with the
same result - the script isn't forwarding me
<script language="JScript">
<!--
function Kontrolle()
{
var WshNetwork = new ActiveXObject("WScript.Network");
var vDomain = WshNetwork.UserDomain;
if(vDomain == "´TESTDOM")
{
location.href = "right.htm";
}
else
{
location.href = "wrong.htm";
}
}
//-->
</script>
It must be a problem with the WScript object, but I've no clue what to do
Christoph
doesn't work on my local Webserver (Xitami). I also tried the IIS, with the
same result - the script isn't forwarding me
<script language="JScript">
<!--
function Kontrolle()
{
var WshNetwork = new ActiveXObject("WScript.Network");
var vDomain = WshNetwork.UserDomain;
if(vDomain == "´TESTDOM")
{
location.href = "right.htm";
}
else
{
location.href = "wrong.htm";
}
}
//-->
</script>
It must be a problem with the WScript object, but I've no clue what to do
Christoph