Netscape doesn't support ActiveX. The ActiveXObject() object is a JScript feature only...
--
Michael Harris
MVP Scripting
Hello,
Can anyone tell me if it is possible to use WSH in Netscape? E.g. the
following page works perfectly in IE:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<script>
function WScript()
{
var WSHNetwork = new ActiveXObject("WScript.Network");
alert(WSHNetwork.UserName);
Quote:
}
</script>
<form>
<input type="button" name="cmdWScript" id="cmdWScript" value="WScript"
onClick="WScript();">
</form>
</BODY>
</HTML>
The user clicks the button and an alert pops up showing their network logon.
I realise that the ActiveXObject is IE-only functionality, but is this the
only way to integrate WSH? Is there a possibility for Netscape?
Any assistance gratefully received.
Best regards,
Mark Rae