![enter image description here](https://i.stack.imgur.com/1cBTY.png) 

```
<div name="ControlDiv-1" id="ControlDiv-1" class="ControlDiv-1" onclick="javascript: window.close()"> </div>

```

That obviously closes that window, but How can I do the same thing and minimize the window instead of close. I looked at the documentation and I found `window.min()` but I cannot get it to work. It creates and error instead of minimizing.