title: Javascript in JavaFX WebView
body: <p>I am new to Java and JavaFX and I am just wondering if the webview of JavaFX can run javascript in itself apart from the communcation it has with the java code. Can I for example run a javascript alert statement in the webview when the window loads and actually get an alert in the webview as I would in a normal browser. I know that I can capture this alert event with my java code by</p>
  
  <p><code>webEngine.setOnAlert</code></p>
  
  <p>but I actually want javascript events to happen in the webview window itself as they would in a normal browser.</p>
  
  <p>The reason that I am asking this simple question is because I am using a webview with a textarea where I want to enable spell checking. I have a javascript spell checker that works perfectly in normal browsers where I get the red underline when I type something wrong, but I want to get it to work in the JavaFX webview also.</p>
  
  <p>I am thankful for any help I can get!</p>