title: How to call javascript function in ZK
body: <p>In ZK framework, inside zul file i want to call javascript function but it does not happens.</p>
  
  <pre><code>&lt;a label="Click" onClick="popUp();"&gt;
  </code></pre>
  
  <p>I have that popUp() function also. But when I click on</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function createPopUp(url)
      {
          var w = 600;
          var h = 500;
          var left = (screen.width/2)-(w/2);
          var top = (screen.height/2)-(h/2);
          window.open(url,'name','scrollbars=yes,width='+w+', height='+h+', top='+top+', left='+left);
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>But when I click on that link it dispalys following error:</p>
  
  <pre><code>Sourced file: inline evaluation of: `` popUp();'' : 
  Command not found: popUp() : at Line: 13 : 
  in file: inline evaluation of: `` popUp();'' : popUp ( ) 
  </code></pre>