title: document.write( ) in jquery modal
body: <p>Hello following is my div of modal. when I open the modal without this piece of code <code>document.write( webcam.get_html(320, 240) );</code> then the modal opens up successfully but when i put the above mentioned code then it opens up the new page and shows the <code>document.write</code> content into that page. Kindly let me know how can i modify the following div so it shows the <code>document.write( webcam.get_html(320, 240) );</code> inside the modal. <code>webcam.get_html(320, 240)</code> is a command of jpegcam plugin that runs the webcam of the laptop or the like, I also even tried by putting simple text <code>document.write( "abcd");</code> and on opening the modal it shows  abcd on new page. Kindly help, Thanks,</p>
  
  <pre><code>&lt;div style='display:none' id="modal-content"&gt;
       &lt;script language="JavaScript"&gt;
          document.write( webcam.get_html(320, 240) );
      &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>