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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onclick load html page

Status
Not open for further replies.

blkblts

IS-IT--Management
Jul 16, 2001
16
0
0
US
I am using VBScript from an ActiveX compliant software. When the user clicks on a button I want an help.html page to load to let them know how to use the button they clicked. How do I do this??? I have the following snippit but am lost from here.

Sub BringUpInternetExplorer
Dim objIE

Set objIE = CreateObject "InternetExplorer.Application")
objIE.Visible = TRUE
' objIE.Navigate " objIE.Navigate "c:/tmp/help.html"
Set objIE = Nothing

'onbutton_click open help.html

End Sub

Thanks
Kim
 
Try to use this
window.open "c:\tmp\help.html",null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no",true
Hope this helps ________

George
 
Thanks George for answering,

Evedentally the code I supplied works. All I have to do is call BringupInternetExplorer after the On_Click... The .navigate opens the help file. I think the window.open would work if the BringupInternetExplorer is not defined.

Kim
 
Yes, u just put only this code not other code
Sub BringUpInternetExplorer(url)
window.open url,null , "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no",true
Hope this helps
End Sub
________

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top