Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WScript.CreateObject inside an HTML page?

Status
Not open for further replies.
Joined
Jul 29, 2005
Messages
136
Location
PT
Hello again,

Is there any way of using WScript.CreateObject method in a vbscript inside an HTML page? The goal is to control IE events of an opened window.


Set objExplorer = WScript.CreateObject _
("InternetExplorer.Application", "IE_")


Thank you
 
simply remove the wscript

Set objExplorer = CreateObject _
("InternetExplorer.Application", "IE_")
 
Hi,

I think that if I remove it, I will not be able to handle Internet Elplorer events...right?

Thank you
 
removing wscript from the wscript.createobject will not affect it. wscript is not supported within HTML. a simple sleep command like wscript.sleep will not work because of this.
 
Why do you need to do it inside a browser to begin with?
 
Well,

The user can just use an html page. I could also put it inside a java/vbscript included in the page. Is it possible to do it without loosing the scoop of the Internet Explorer variable?

Thank you
 
Would window.open() not good enough for you?!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top