javascript function is not invoked at the first time onclick
<p>I have a following code:</p>

<pre><code>$this-&gt;content-&gt;text  .=
         '&lt;div id="gv_block_div"&gt;
            &lt;a href="javascript:void(0)" onclick="pop('.htmlspecialchars($jsonObject).', \''.$root.'\', '.$userid.')"&gt;Click Here&lt;/a&gt; 
         &lt;/div&gt;';  

return $this-&gt;content;   
</code></pre>

<p>When I login and click "Click Here" the onclick event doesn't trigger. It works at the second click. However, after that (before logging out), single click works just fine.</p>

<p>What should be the potential problem? </p>
