Click to return to the HTML Help home page    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

To Assign a Window Type to a Topic When Linking


Microsoft Corporation

Updated June 10, 1999

  1. Define the appropriate secondary window type in the project file.
  2. Open the HTML file you are linking from and click HTML Help ActiveX Control.

    HTML Help ActiveX Control

    Opens the HTML Help ActiveX Control Wizard, which enables you to insert or edit the control in an HTML file.

  3. In the Specify the command box, click Related Topics, and then, if you have already used the HTML Help ActiveX control in this file, enter an ID name for this instance of the control.
  4. Click Next, and then, because you most likely do not want a button associated with the link text, click Hidden to specify that you will be scripting this use of the HTML Help ActiveX control.
  5. Click Next, click Add, and then enter the Title and File/URL information for the topic you are linking to.
  6. In the Window box, specify the name of the secondary window you want the topic to appear in. This name must match the name you gave the secondary window in the project file.
  7. Click Next, and then click Finish.
  8. Add the following JavaScript syntax to the file to create the text link:

    <A HREF=JavaScript:hhctrl.Click()>link</a>

    where hhctrl is the ID for the instance of the control and link is the link text.

Notes

Home page link About creating help windows
 


Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.