title: jQuery detect maximize and restore buttons from browser
body: <p>I've seen a few posts but none really answered my question.
  I want to detect the browsers built in <code>maximize</code> and <code>restore</code> button clicks on the top right of the browser next to the <code>[X]</code> close button.  I would like to trigger a function from this.</p>
  
  <p><code>Window Resize</code> only works when you grab a corner and manually resize the browser.</p>
  
  <pre><code>$(window).bind('resize', function() {});
  </code></pre>
  
  <p>Any help will be appreciated, thanks.</p>