Click to return to the HTML Help home page    
Example: a two-frame fram...     HTML Help ActiveX Control...     Publishing on the Web    
Web Workshop  |  DHTML, HTML & CSS  |  HTML Help

Creating a Link to Close a Frameset


Microsoft Corporation

Updated June 10, 1999

Currently the HTML Help ActiveX Control Close command does not work properly with Web pages that contain frames. Because of this, you will need to create a special link to close such pages. This link will close the main browser window and all of the frames it contains.

To close a window that contains a frameset:

  1. Open the HTML file in which you want to include the link.
  2. Position your cursor where you want the link to appear.
  3. Add the link using the following syntax:

    <A HREF=JavaScript:window.top.close()>Close</A>



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.