简体   繁体   English

如何在webbrowser控件中启用javascript?

[英]How do I enable javascript in webbrowser control?

I have a web application which launches a windows application using Citrix server. 我有一个Web应用程序,可使用Citrix服务器启动Windows应用程序。

Windows application has a webbrowser control. Windows应用程序具有Web浏览器控件。

When windows application is launched stand alone on Citrix server, web site opens in webbrowser control with no problem. 当Windows应用程序在Citrix服务器上独立启动时,该网站将在webbrowser控件中打开,没有问题。

But when it is launched through my web application, the webbrowser control does not load the javascript. 但是,当通过我的Web应用程序启动它时,webbrowser控件不会加载javascript。 It shows content blocked error. 它显示内容阻止错误。 It does not fire any event and show message on web page as 它不会触发任何事件,也不会将网页上的消息显示为

"Note: Since your browser does not support javascript you must press the Continue button once to proceed " “注意:由于您的浏览器不支持javascript,因此必须按一次继续按钮才能继续”

I tried this : 我尝试了这个:

I enabled the scripting on Internet Explorer on Citrix server. 我在Citrix服务器上的Internet Explorer上启用了脚本。

Added my application url in trusted site. 在受信任的站点中添加了我的应用程序URL。

But none of the above worked for me. 但是以上都不对我有用。

Here is a nice walkthrough if you would be compelled to do something like work in IE. 如果您被迫在IE中进行类似的工作,这是一个很好的演练。

https://www.whatismybrowser.com/guides/how-to-enable-javascript/internet-explorer https://www.whatismybrowser.com/guides/how-to-enable-javascript/internet-explorer

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM