title: Calling Java inside JavaScript Function
body: <p>Please tell me if we can call java inside javascript function ?</p>
  
  <pre><code>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;
      &lt;SCRIPT&gt;
          function getScreenDimension() {
              &lt;% System.out.println("Hiiiiiiiii"); %&gt;
          }
      &lt;/SCRIPT&gt;
      &lt;FORM&gt;
          &lt;INPUT type="button" value="call Java method direct"  onClick = "getScreenDimension()"&gt;
      &lt;/FORM&gt;
  &lt;/BODY&gt;&lt;/HTML&gt;
  </code></pre>