Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
The browser window minimize code is working for normal.

The problem is press F11 go in full screen and then click on minimize button then the browser window is not minimizing.I have to minimize window in full screen.

Please let me know how to do this,sample code is below.


XML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Minimize IE</title>
    <script language="javascript">
        show = 1
        function minimize() {
            moveBy(2000, 2000)
            show = 0
        }
        function reshow() {
            if (show == 0) {
                moveBy(-2000, -2000)
                show = 1
            }
        }
    </script>
</head>
<body onfocus="reshow()">
    <form id="form1" runat="server">
    <div>
        <input id="Button1" type="button" onclick="minimize()" value="Minimize" />
    </div>
    </form>
</body>
</html>
Posted
Updated 20-Nov-13 4:44am
v2
Comments
Sergey Alexandrovich Kryukov 20-Nov-13 11:38am    
Bad idea. This should be left to full discretion of the user. As to "show", it sounds like a popup browser window. Many users will block popups using appropriate browser plug-in, because those pop-ups not only inconvenient, but they became overly annoying due to huge amount of evil popup ads.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900