title: Can I resize the browser window?
body: <p>I want to resize a browser popup window's width and height. I can set the popup window size but I want to convert the window size fit to contents size when a page is redirected to another page. </p>
  
  <p>I tried this:</p>
  
  <pre><code>$(window).width(1000);  // Not working.
  </code></pre>
  
  <p>How can I do this? </p>
  
  <p><strong>Update</strong></p>
  
  <p>Everybody told me not to do it. To find out the exact reason why this is bad practice, I asked on <a href="https://ux.stackexchange.com/questions/9903/why-resizing-the-browser-window-is-bad-practice/9907#9907">ux.stackexchange.com</a>. </p>