How to enable javaScript in web browser control in windows form in c#?

亡梦爱人 提交于 2019-12-12 06:48:13

问题


I have application in asp.net. I want to open it in web browser control in window form. I run it by just giving the url in the properties of browser. It successfully runs. But my javascrpit file does not work.

Can anybody help me in this regarding how javascript will work?

Thanks


回答1:


WebBrowser control doesn't have such property to set to enable or disable javascript. If you want to enable/disable javascript, you can enable/disable it in your Internet Security option in the Windows system. That option can be found as below: Control Panel -> Internet Options -> Security

http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3264223f-d5c0-4c1a-b550-3621ca17635f/

Best regards.



来源:https://stackoverflow.com/questions/14040216/how-to-enable-javascript-in-web-browser-control-in-windows-form-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!