1. window.showHelp("../jscript56.chm");
2.F1用自己的帮助文件
<body onhelp="window.open('mk:@MSITStore:http://www.blueidea.com/user/qswh/css2.chm::/css2/c_wordwrap.html');return false;">
<body onhelp="window.open('its:http://www.blueidea.com/user/qswh/css2.chm::/css2/c_wordwrap.html');return false;">
例:
<body onhelp="window.open('its:file://C:/Documents%20and%20Settings/Administrator/ 桌面/aa.chm::/html/jsoriJScript.htm');return false;">
<input type="button" onClick='window.showHelp("aa.chm");' value="help">
<a href="#" onClick='window.showHelp("aa.chm");'>help</a>
博客展示了调用CHM帮助文件的相关代码。包括使用window.showHelp调用,以及在F1按键触发时用window.open打开指定CHM文件内的HTML页面,还给出了按钮和链接触发调用CHM文件的示例。
1343





