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.
<A href=javascript:window.top.close()>close</a>