MichaelK
May 3rd, 2000, 12:56 AM
Hi,
I've been trying for a loooong time to try to get this to work properly. First I tried to do this in just VB., but for some reason when I tried to open a file locally, it adds a "\" to the beginning of it, so it can't find the file. When I tried it in VBScript in IE5, it doesn't do anything at all.. This is what I have:
<HTML>
<HEAD>
<SCRIPT LANGUAGE=VBScript>
Sub Btn1_onclick()
Dim obj
Set obj = CreateObject("FrontPage.Application")
obj.Webs.Open("c:\test.html")
End Sub
</SCRIPT>
<TITLE>Launch Word</Title>
</HEAD>
<BODY>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Frontpage">
</BODY>
</HTML>
Thanks for any help you guys can give!
If anyone can actually tell me how to make IE5 host frontpage instead of launching it, it would be even better!
I've been trying for a loooong time to try to get this to work properly. First I tried to do this in just VB., but for some reason when I tried to open a file locally, it adds a "\" to the beginning of it, so it can't find the file. When I tried it in VBScript in IE5, it doesn't do anything at all.. This is what I have:
<HTML>
<HEAD>
<SCRIPT LANGUAGE=VBScript>
Sub Btn1_onclick()
Dim obj
Set obj = CreateObject("FrontPage.Application")
obj.Webs.Open("c:\test.html")
End Sub
</SCRIPT>
<TITLE>Launch Word</Title>
</HEAD>
<BODY>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Frontpage">
</BODY>
</HTML>
Thanks for any help you guys can give!
If anyone can actually tell me how to make IE5 host frontpage instead of launching it, it would be even better!