Hello. Can you explain, which is dirrefence with calling JS:
1) Chromium1.ExecuteJavaScript( JSCode, Chromium1.Browser.MainFrame.GetURL(), 0);
and
2) Chromium1.ExecuteJavaScript( JSCode, 'about:blank', 0);
what the best way? Thanks.
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Difference in JS calling
- salvadordf
- Posts: 4575
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Difference in JS calling
These are the code comments for that function :
https://bitbucket.org/chromiumembedded/ ... #lines-148
https://magpcss.org/ceforum/apidocs3/pr ... ring&,int)
Code: Select all
///
// Execute a string of JavaScript code in this frame. The |script_url|
// parameter is the URL where the script in question can be found, if any. The
// renderer may request this URL to show the developer the source of the
// error. The |start_line| parameter is the base line number to use for error
// reporting.
///
https://magpcss.org/ceforum/apidocs3/pr ... ring&,int)