title: Javascript code not working inside PHP
body: <p>This is the code I am executing inside PHP condition</p>
  
  <pre><code>&lt;?php
      if(is_null($model)) {
          echo "&lt;script&gt;window.parent.closeIframe(true)&lt;/script&gt;";
      }
  ?&gt;
  </code></pre>
  
  <p>It doesn't work even If I put alert or calling a function inside my PHP condition. </p>
  
  <p>Is it possible to run a Javascript code inside PHP ? 
  Is there any PHP extensions needed to be enabled ?</p>