Click and HHClick Method
Use the Click method to invoke any command that supports the Button parameter.
Commands that do not support the Button parameter, such as Splash, are invoked as soon as your HTML file is loaded and, therefore, cannot be called from a method.
This method can be used with either a compiled help (.chm) file or uncompiled HTML files. However, not all commands are supported in uncompiled HTML files.
Click() or HHClick()
The Click method takes no parameters.
The following example shows how to use the Click method to invoke the HH version command.
The code for the control:
<OBJECT id=test3 type="application/x-oleobject" classid="clsid:52a2aaae-085d-4187-97ea-8c30db990436" codebase="hhctrl.ocx#Version=5,02,3792,1194" > <PARAM name="Command" value="HH Version"> </OBJECT>
- If you are using Microsoft Visual Basic Scripting Edition (VBScript), always use HHClick, which provides the same functionality as Click, but prevents a naming conflict with the VBScript Click method.