I have a BrowserWindow object that pointing to a website.
mainWindow.loadUrl('http://example.com/');
Now I want to execute scripts on this website, so I'm looking for a method like window.eval in node-webkit, but I have not found. Anyone know?
Thanks in advance!
webContents.executeJavaScript is the method:
myCoolWindow.webContents.executeJavaScript('window.close()');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With