给你一个示例: (路径你改为自己的就可以了)<input type="button" value="showHelp" onclick="hh()">
<script>
function hh(){
window.showHelp("E:\\book\\hello.chm::/www/18.htm");
}
</script>而且,你也可以这样动态的:<input type="button" value="showHelp" onclick="hh()">
<script>
function hh(){
window.showHelp("http://www.csdn.net/help.jsp?sid=1&iid=2");
}
</script>
<script>
function hh(){
window.showHelp("E:\\book\\hello.chm::/www/18.htm");
}
</script>而且,你也可以这样动态的:<input type="button" value="showHelp" onclick="hh()">
<script>
function hh(){
window.showHelp("http://www.csdn.net/help.jsp?sid=1&iid=2");
}
</script>
呵呵,试一试无心的method看看