title: Detect maximize event in browser Javascript
body: <p>I want to close the tab when we press the maximize button in the browser.<br>
  How can we detect the event of maximize button?</p>
  
  <p>Any help would be appreciated.</p>