
How to use WSH object in js file called from Html file
Since Wscript is the host of the Wscript object, as you
wrote it, it cannot work when hosted by IE (HTML). Try
using JScript's object (which is the same in IE)
instead ...
var myobj = new ActiveXObject('..');
You will still run into a security issue, but it won't be
a coding problem.
Tom Lavedas
===========
Quote:
>-----Original Message-----
>Hi,
>I have a javascript file which contains functions and one
of them is used to
>open a IE using WScript.CreateObject.
>I included this javascript file in a html file in which I
called this
>function, I got the following error :
>Error : 'WScript' is undefined
>Any help.
>Thanks.
>.