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.

Best way to run JS code

Post Reply
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Best way to run JS code

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

Re: Best way to run JS code

Post 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.
Post Reply