Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/443.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何以编程方式单击vb.net中使用javascript的链接_Javascript_Vb.net_Hyperlink - Fatal编程技术网

如何以编程方式单击vb.net中使用javascript的链接

如何以编程方式单击vb.net中使用javascript的链接,javascript,vb.net,hyperlink,Javascript,Vb.net,Hyperlink,大家好,我只是太累了,在互联网上到处搜索这个问题的解决方案,我已经使用了所有的可能性,但它不起作用 下面是链接的html代码 <li id="jplain" class=""><a href="javascript:void(0);" onclick="return usePlainText('draft');">HTML</a></li> 任何帮助都将不胜感激,非常感谢我不知道这是否太晚,无法帮助您,但我碰巧看到它没有解决方案。 在下面的

大家好,我只是太累了,在互联网上到处搜索这个问题的解决方案,我已经使用了所有的可能性,但它不起作用 下面是链接的html代码

 <li id="jplain" class=""><a href="javascript:void(0);" onclick="return usePlainText('draft');">HTML</a></li>

  • 任何帮助都将不胜感激,非常感谢

    我不知道这是否太晚,无法帮助您,但我碰巧看到它没有解决方案。 在下面的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();
    } 
    

    这是否来自ASP.NET应用程序?Windows应用程序?这是您自己的代码吗?为什么不在回发时运行usePlainText(“草稿”)javascript?您需要提供更多的信息,说明您正试图实现这一目标的内容和方式。