title: How to display a Image in Pop up Window through Window.open
body: <p>I am trying to display a image in a window pop up using the following javascript</p>
  
  <pre><code>function newPopup(url) {
      popupWindow = window.open(
          url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes')
  }
  </code></pre>
  
  <p>In the Html code I am using php directory Iterator to find jpeg image and pass it to the javascript. But the pop up window does not open. </p>
  
  <pre><code>echo '&lt;td width="150"&gt;&lt;a href="JavaScript:newPopup('.$file_name.');"&gt;ScreenShot&lt;/a&gt;&lt;/td&gt;';
  </code></pre>
  
  <p>What am I doing wrong here </p>