while using eval it show function is not defined
<pre><code>&lt;html&gt;
&lt;body&gt;
&lt;input type="text" onFocus="javascript:findPosY()"/&gt;
&lt;script type="text/javascript"&gt;
eval( function findPosY(){alert("OK");});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>While executing above code, eval() function not called and alert is not displayed.</p>
