Home » Java » java – JavaFX Webview: how to preemptively modify html nodes created by Javascript?-Exceptionshub

java – JavaFX Webview: how to preemptively modify html nodes created by Javascript?-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

In JavaFX Webview, is there a way to modify html nodes that don’t exist yet?

For existing nodes, I can use something like doc.getElementsByTagName after the loading of the document to get the list of nodes I want. I can then modify the nodes modify/view individually.

However this does not take care of nodes created later by Javascript.

Is there a way to process nodes created at a later time by Javascript? Maybe by adding some sort of event listener on the document?

How to&Answers: