Click to See Complete Forum and Search --> : VBSCRIPT


Richard S
November 11th, 1999, 08:45 AM
I am unsure if this is the correct forum. I am in a large environment where peope have Netscape 4 and IE 4/Outlook. I have written Help Documentation using the HHCTRL.OCX Active X Control. I have made it stand alone and web based. If some one is using Netscape to access the web documentation the Active X Control fails. I would like to have VBSCRIPT code that will automatically load I.E. 4 to a particular web page (not just open a window, actually run the program).

I know how to do this from an Outlook Based form using VBSCRIPT.

Below is the example:

Sub Item_Open()
Set MyApp = Item.Application
Set Web = MyApp.CreateObject("InternetExplorer.Application")
Web.Visible = TRUE
Web.Navigate "www.yahoo.com"
End Sub

Does anybody know to use VBSCRIPT from a web page to achieve similar results?

Thanks!

Richard

Richard S
November 11th, 1999, 09:33 AM
Well, I answered my own question. Below is the VBSCRIPT code:

html>

<head>
<title>Test</title>
</head>

<body>

<p><input id="button1" name="button1" type="button" value="Button<<P"> <script
LANGUAGE="VBScript">

sub button1_onclick()
' Launch IE
dim app
set app = createobject("InternetExplorer.Application")

' Make it visible
app.Visible = true
app.navigate "www.yahoo.com"


end sub
</script> </p>
</body>
</html>


The only problem is that this does not work in Netscape.... Does anybody know how to convert this to Java Script? I know this is getting beyond the scope of the forum.

Richard S

Lothar Haensler
November 11th, 1999, 09:37 AM
var app = new ActiveXobject("internetexplorer.application);
app.visible = true;
app.navigate("yahoo.com");