title: Detect browser window "Maximized" / "Minimized "with JavaScript
body: <p>When the user clicks the &quot;Maximized&quot;/&quot;Restore&quot; or &quot;Minimized&quot; buttons of the browser window, is there a way to keep track of these events with JavaScript? Are there any appropriate event or property to use?</p>
  <p>I want that when the user clicks the &quot;Maximized&quot; button at the top-right of the window, the webpage should stretch to a specific width and when the browser is in the resizable mode, the webpage is resizable.</p>
  <p>Please can someone help me in this? I don't mind either JavaScript or jQuery.</p>
  <p>Thanks in advance.</p>