title: How to put a picture into a pop up window in javascript?
body: <p>I have this script, however, I cannot figure out how to get an image to show up in the pop up window. Right now, when the window pops up, I only get script. I have tried to enter a link using the href code and the 
  
  <pre><code>&lt;html&gt;
  &lt;head&gt; 
   &lt;SCRIPT language="JavaScript"&gt; 
  
  var w = 480, h = 340;
  
  if (document.getElementById) {
     w = screen.availWidth;
     h = screen.availHeight;
  }  
  
  var popW = 300, popH = 200;
  
  var leftPos = (w-popW)/2;
  var topPos = (h-popH)/2;
  
  
  
  msgWindow = window.open('','popup','width=' + popW + ',height=' + popH + 
                           ',top=' + topPos + ',left=' + leftPos + ',       scrollbars=yes');
  
  msgWindow.document.write 
      ('&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;Centered Window&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;FORM    NAME="form1"&gt;' +
      ' &lt;H1&gt;Notice the centered popup window.&lt;/H1&gt;This is the ordinary HTML' + 
      ' document that can be created on the fly.  But the window is centered   in ' +
      ' the browser.  Click the button below to close the window.&lt;br /&gt;' +
      '&lt;INPUT TYPE="button" VALUE="OK"onClick="window.close();"&gt;&lt;/FORM&gt;&lt;/BODY&gt;   &lt;/HTML&gt;');
  
  
  &lt;/script&gt;
  &lt;form&gt;
  &lt;input type="button" onClick="openWindow()" value="Click Me"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>
     </p>