js问题:为什么我在<li>里触发函数:
function Bold() {
window.alert("ok");
window.frames["hemleditor"].document.execCommand('Bold');//加粗选中字的字体
}
无效,而在<input 的button里触发,就有效呢?,都能打出ok啊,求指点,要疯了<li id="li11" onclick="Bold()" ...........
<input type=button value="加粗2" onclick="Bold()">