Lauching vbscript from HTML file -


Good day,

This may be a simple question, but there is someone to start Also help really appreciated

I have a VBSscript that will launch a website from IE, which will disable the address bar. It works fine when I execute a .vbs file.

I have a question, can this script be inserted into an HMTL file and the same action can be taken?

When I click on an HTML file, the IE is being detected with a special website whose address bar is disabled.

This is my vbscript code:

  set oIE1 = WScript.CreateObject ("InternetExplorer.Application") oIE1.Navigate "http://www.yahoo.com "OIE1.Visible = 1 oIE1.AddressBar = 0 oIE1.StatusBar = 0 oIE1.ToolBar = 0 oIE1.MenuBar = 0  

How do I insert it inside an html file?

Thanks a lot!

Regards, Jvarman

Just ... keep it in an HTML page As such, you are going to receive security alerts, since client-side scripts are not allowed (by default) to instantiate COM / ActiveX objects like you are trying to do.

  & lt; Html & gt; & Lt; Script language = "vbscript" & gt; Subloaded IE () OE1 = set object ("Internet Explorer. Application") OEE 1.Vibial = True OEE1 Navigate to "http://www.yahoo.com" end sub  & Lt; Body & gt; & Lt; Input Type = "Button" value = "Turn on IE" onclick = "LoadIE ()" & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -