Page 1 of 1

Best way to run JS code

Posted: Fri May 25, 2018 2:34 pm
by thefunkyjoint
Hi,

I'm using the code below whenever i need to run JS code in a page :

Code: Select all

var code := 'var j = 10';
chromium1.loadurl('javascript:'+code);
However recently i found out that i could use the ExecuteJavaScript method. Is there any difference ? What would be recommended ?

Thanks

Re: Best way to run JS code

Posted: Sat May 26, 2018 6:42 am
by salvadordf
I don't know if there's a "recommended way" to execute JavaScript code but you will find many posts about ExecuteJavaScript in the official CEF3 forum.