你好,我只是因为在互联网上搜索这个问题的解决方案而感到厌倦,我已经使用了所有的可能性而且它没有用 现在这里是链接的HTML代码
<li id="jplain" class=""><a href="javascript:void(0);" onclick="return usePlainText('draft');">HTML</a></li>
任何帮助将不胜感激,非常感谢
答案 0 :(得分:1)
我不知道这对你来说是否为时已晚,但我碰巧没有解决方案。 在下面的javascript代码中,我甚至与表单上的按钮(hdnF5)相关联。所以这是一个按钮的点击事件。它会做一些事情,然后点击另一次 另一个控件上的事件......也许是一个链接或另一个按钮。
function FireClickEventFromSomeClickableControl() {
/* other instructions in here
then finally getting to the
last instruction below to
cause a click event on the
control(the one you want the
click event on) to fire.
*/
document.form1.hdnF5.click();
}