I want to close the tab when we press the maximize button in the browser.
How can we detect the event of maximize button?
Any help would be appreciated.
I guess maximize can be caught with a $(window).resize();
You can check if the current size of the window is larger than the previous. But I don't think there is a JS event to detect a click on maximize button.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.