title: how to open link in a new window and set size after page load?
body: <p>I have a link with querystring like <strong>"...com/default3.aspx?id=123?code=456"</strong> This link create automatically and sending in mail as a hyperlink. I design default3.aspx page and doing some operations according to querystring. Is that a way open this link in a new window and set window size, after clicked from mail this link?</p>
  
  <p>I tried this but it doesn't work.</p>
  
  <pre><code>&lt;body onload="resizeWindow()" &gt;
  ...
      &lt;script type="text/javascript"&gt;
      function resizeWindow() 
     {           
      // you can get height and width from serverside as well      
      var width=100;
      var height=100; 
      window.resizeTo(width,height);           
      }
      &lt;/script&gt;
  </code></pre>
  
  <p>Thank you.</p>