I would like to know if javascript can be disabled in WebView of Javafx. I have searched the web but cant get any information about this.
The link in Oracle website says that javascript can be enabled and disabled but cant find any documentation.
Thanks..
You have to set Javascript disabled on the WebEngine
itself that the WebView controls.
WebView browser = new WebView();
WebEngine webEngine = browser.getEngine();
webEngine.setJavaScriptEnabled(false);
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