Delphi/Lazarus: Turn off Script Error Message in WebBrowser
Question by Guest | Last update on 2021-05-06 | Created on 2016-08-05
I am using the TWebBrowser component on my Form for displaying some website. It is known that this component is a wrapper for the Microsoft Internet Explorer.
It is working quite well, however, again and again I get a PopUp dialog window displayed containing the following warning.
Internet Explorer Script Error An error has occurred in the script on this page. Do you want to continue running scripts on this page?
Additionally, there are some information about the line, the error, the code and the URL.
Of course, at this point, it would be better to fix the script error directly on the website, but this is not possible because the error even occurs on usual Internet pages in the WWW to which I have of course no influence.
So, is there any possibility to get rid of this message or to suppress it?
Related Topics
Lazarus: Program without GUI - Many WSRegister Errors
Question | 6 Answers
Delphi: Global Treatment of Errors (Exceptions)
Tutorial | 0 Comments
Windows Batch Script: Computer Shutdown
Tutorial | 2 Comments
Create Custom Error Pages for Website
Tip | 0 Comments
Delphi/Lazarus: Command Line Parameter Tutorial Part 1: Sending
Tutorial | 0 Comments
jQuery: Submit complete form and receive content with Ajax
Tutorial | 0 Comments
Delphi/Lazarus: How to set up a Link to a Website in an Application
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
Yes, there is a possibility.
You only have to set the property "silent" of the browser component to "true".
In Delphi you can do that in this way:
And this is the Lazarus way:
Afterwards the pop up should not be displayed anymore.
Last update on 2021-05-06 | Created on 2016-08-05