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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Difference in JS calling

Post Reply
ForumReader
Posts: 8
Joined: Wed Mar 18, 2020 4:18 am

Difference in JS calling

Post by ForumReader »

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.
User avatar
salvadordf
Posts: 4573
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Difference in JS calling

Post by salvadordf »

These are the code comments for that function :

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://bitbucket.org/chromiumembedded/ ... #lines-148
https://magpcss.org/ceforum/apidocs3/pr ... ring&,int)
Post Reply