开发者

How to suppress Script error warnings when using TWebBrowser in Delphi? [duplicate]

开发者 https://www.devze.com 2023-01-07 03:19 出处:网络
This question already has an answer here: Closed 12 years ago. Possible Duplicate: how to disable javascript errors on “twebbrowser” ?
This question already has an answer here: Closed 12 years ago.

Possible Duplicate:

how to disable javascript errors on “twebbrowser” ?

I'm using the TWebBrowser component with Delphi 6.0 to display a YouTube web page. Sometimes I get a Script error message box from Internet Explorer, which TWebBrowser embeds, complaining that an error has occurred in a script running on the page and prompting me "Yes or No" to disable further execution of any scripts on the page.

I want to be able to suppress all Script warning boxes since certain web 开发者_JAVA技巧pages act funny in the TWebBrowser component. Is there a way to do this?

Thanks in advance.


Set Silent property to True

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号