title: How to open new window and write data into that
body: <p>I want to write some selected date in another window. For that i wrote JavaScript code like that....</p>
  
  <pre><code>        function Writer()
          {
              winobj=window.open('','','toolbar=no,status=no,scrollbars=yes,width=800,height=600');
              var txt='';
              if(document.selection)
              {
                  txt = document.selection.createRange().text
                  winobj.document.selection.createRange().text = txt;
              }
              else 
              {
                  return
              }
          }   
  </code></pre>
  
  <p>This function working well with Internet Explorer but not working with Firefox or Crome....
  Anyone plz modify this code or plz suggest me another code so that i can work with all browser.</p>
  
  <p>Thanks</p>