title: make a div in a new created window
body: <p>I made a timer that shows up a my new created window.</p>
  
  <p>but, it repeats the text everytime because i write a new line.</p>
  
  <p>i want to make a div element in my window so i can replace (update) the text every second.</p>
  
  <p>object:</p>
  
  <pre><code>venster = window.open('new.html','titel','width=500, height= 500');
  </code></pre>
  
  <p>my timer:</p>
  
  <pre><code>function stopwatch(sec){
      //timer 
      venster.document.write("window closes in: " + sec);
      if(sec &lt; 1){
          clearTimeout(timer);
          venster.document.write("&lt;h1&gt;i will close!&lt;/h1&gt;");
          //setTimeout(venster.close(),2000);
          }
      sec--;
      var timer = setTimeout('stopwatch('+sec+')',1000);
      }
  </code></pre>
  
  <p>i want the text <em>"window closes in .."</em> only shown once and not every second a new line of this text.</p>