JavaFX WebView up call from JavaScript doesn't work
问题 I have a JavaFX WebView and want to call the method "hello" of the class "JavaBridge" from "test.html" displayed in the webview. Why doesn't this work? I making sure that the "bridge" object only be added to the window.object when the page has been fully rendered, so that is probably not the problem. I can't see any problem with the HTML either. Here is the HTML code ("test.html"): <html> <head> </head> <body> <a href="#click" onclick="bridge.hello()">call java</a> </body> </html> And here is