Attention (!) - Close Window automatically

CHM

go to home ...

Close Window automatically

One can close HTML Help window without getting a click from user by the following code. Use "Close" ActiveX Control and Javascript as shown below.

Code

 

<OBJECT id=hhctrl type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
codebase="hhctrl.ocx#Version=5,2,3790,233">
<PARAM name="Command" value="Close">
</OBJECT>
<script type="text/javascript" language="JavaScript">
<!--
window.setTimeout('hhctrl.Click();',1000);
// -->
</script>

 

 

 

 

back to top ...