Inject .JS when page loaded

Having problems with building or using the JCEF Java binding? Ask your questions here.

Inject .JS when page loaded

Postby itaks » Wed Oct 19, 2022 2:48 pm

Hi,
it's possibile to inject a .JS script when a page is loaded (or during the loading).

Thank you.
itaks
Techie
 
Posts: 18
Joined: Wed Mar 09, 2022 6:00 pm

Re: Inject .JS when page loaded

Postby Phylanx » Thu Oct 20, 2022 1:52 am

Hi!

Yes, you can!

We do the same thing for our javascript callback methods.
We call cefBrowser.executeJavaScript in the following methods:
[*] CefDisplayHandler.onAddressChange
[*] CefLoadHandler.onLoadEnd
Phylanx
Expert
 
Posts: 201
Joined: Thu Aug 11, 2016 8:17 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 150 guests