title: How to Set a textbox value in a new opened window?
body: <p>I have following div with a textbox in it.</p>
  
  <pre><code>&lt;div id="DvPrint"&gt;
      &lt;div&gt;
      &lt;input type="text" style="width: 100px;
                                      margin-left: 25px;" class="textbox" id="ctl00_content_TxtLetterNumber" readonly="readonly" name="ctl00$content$TxtLetterNumber"&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Now I write the div contents in a new window using <code>window.open.</code></p>
  
  <pre><code> n = window.open('M80Print.aspx', '_blank', 'status=no,toolbar=no,menubar=yes,height=550px,width=640px');
              n.document.open();
   n.document.write($('#DvPrint').html());
  </code></pre>
  
  <p>Now I want to change the textbox value in new opened window. How can I do it??
  Something like this:</p>
  
  <pre><code>n.document.getElementById('ctl00_content_TxtLetterNumber').innerHTML = "1";
  </code></pre>
  
  <p>but it doesn't work.</p>