Page 1 of 1

Difference in JS calling

Posted: Fri May 08, 2020 10:58 am
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.

Re: Difference in JS calling

Posted: Fri May 08, 2020 11:02 am
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)