Window.minimize()

The Window.minimize() method sets the window to a minimized state.

A way to undo this method programmatically is by calling window.moveTo().

Browser compatibility

BCD tables only load in the browser