I use JavaFx 8 WebEngine (custom browser) In my html page i have print button
document.querySelector('.check').onload = function() {
setTimeout(function() {
window.print();
}, 500)
}
I want by clicking on the button print - catch this with your WebEngine
and send the document for printing.
The question is how to do this?
there is no such event in the documentation.
https://docs.oracle.com/javase/8/javafx/api/javafx/scene/web/WebEngine.html
window.alert() onAlert
window.confirm() confirmHandler
window.open() createPopupHandler
window.open() and
window.close() onVisibilityChanged
window.prompt() promptHandler
Setting window.status onStatusChanged