在Web浏览器中调用外部Javascript函数 [英] Call External Javascript Function in Web Browser

查看:95
本文介绍了在Web浏览器中调用外部Javascript函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

         我已经从Web浏览器中的外部URL加载了HTML表单.在该HTML表单按钮中,onclick事件是使用Javascript处理的.我需要在单击显示的按钮时调用Javascript函数 在Web浏览器中.我不知道该如何实现.有人可以告诉我该怎么做吗?

           I have loaded HTML Form from external url in Web Browser.In that HTML Form button onclick Event is handled using Javascript.I need to call the Javascript Function on clikcing the button displayed in Web Browser.I dont have any idea how to achieve it.Can anyone pls tell me how to do it  and any proper solution for this?any help will be greatly appreciated.

推荐答案

WebBrowser.InvokeScript 是您的朋友,请使用它从C#调用JavaScript代码.

WebBrowser.InvokeScript is your friend here, use it to invoke JavaScript code from C#.

欢呼


这篇关于在Web浏览器中调用外部Javascript函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆