Access Javascript from Java
<p>I m trying to access JavaScript function from Servlet code. But I'm getting the error shown below.
Here is the code:</p>

<pre><code>out.println("&lt;FRAME src=\"javascript:parent.newWindow('" + URL+ "') \" scrolling=No noresize /&gt;");
</code></pre>

<p>And this is the error that occurs in JavaScript:</p>

<blockquote>
  <p>Object does not support this property or method;</p>
</blockquote>
