title: Window.open resize to available width and height
body: <p>I've done a bit of searching but I can't see if this is possible or not. I would like to use the <code>window.open()</code> method to open links to the windows available width and height. Something similar to the below code. </p>
  
  <pre><code>var h = $(window).height(); 
  var w = $(window).width(); 
  
  $('#window-opener').live('click',function (e) {
          window.open(this.href, 'Resource', 'toolbar=no ,location=0, status=no, titlebar=no, menubar=no,
                      width='+w', 
                      height='+h);
          e.preventDefault();
  });
  </code></pre>
  
  <p>Is this possible? If not can anybody recommend a way of doing something similar.</p>