Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Mimimize Button?

  1. #1
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Mimimize Button?

    I want to create a button that will minimize the browser. Anyone know how?

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    It isn't possible, I don't think (in JavaScript or any other client-side scripting for that matter). Maybe a Java app could do it, but I wouldn't know how.

  3. #3
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    I imagine it can be done with JavaScript, I doubt PHP could do this...

  4. #4
    Join Date
    Aug 2008
    Location
    Smiths, AL
    Posts
    164
    Thanks
    30
    Thanked 5 Times in 5 Posts

    Default

    HTML Code:
    <html>
    <head>
    <script type="text/javascript">
    function resizeWindow()
    {
    top.resizeTo(500,300); /* Replace this with the size you want */
    }
    </script>
    </head>
    
    <body>
    <form>
    <input type="button" onclick="resizeWindow()" value="Resize window">
    </form>
    </body>
    
    </html>
    ___________________________________

    Still working on it!

  5. #5
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I can't get it to work.

  6. #6
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Is there a way to bring back the last open application, then?

  7. #7
    Join Date
    Aug 2008
    Location
    Smiths, AL
    Posts
    164
    Thanks
    30
    Thanked 5 Times in 5 Posts

    Default

    I'm sorry I am resizing the window instead of minimizing it.

    and you can use this to go back in history if you are talking about internet pages.

    <FORM>
    <INPUT type="button" value="Click here to go back" onClick="history.back()">
    </FORM>
    Last edited by Dirt_Diver; 02-09-2009 at 03:19 AM.
    ___________________________________

    Still working on it!

  8. #8
    Join Date
    Aug 2008
    Location
    Smiths, AL
    Posts
    164
    Thanks
    30
    Thanked 5 Times in 5 Posts

    Default

    I don't know of a way but couldn't you just right click on the window in the taskbar and choose minimize?
    ___________________________________

    Still working on it!

  9. #9
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by andyraah View Post
    I want to create a button that will minimize the browser. Anyone know how?
    I agree with Schmoopy it can be done with JavaScript....

  10. The Following User Says Thank You to Mafishioso For This Useful Post:

    andyraah (02-20-2009)

  11. #10
    Join Date
    Feb 2009
    Location
    Romania
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You have here another example in javascript
    http://www.htmlgoodies.com/beyond/ja...le.php/3471151

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    
    function Minimize()
    {
    window.innerWidth = 100;
    window.innerHeight = 100;
    window.screenX = screen.width;
    window.screenY = screen.height;
    alwaysLowered = true;
    }
    
    function Maximize()
    {
    window.innerWidth = screen.width;
    window.innerHeight = screen.height;
    window.screenX = 0;
    window.screenY = 0;
    alwaysLowered = false;
    }
    </SCRIPT>
    
    <A HREF="javascript:onClick=Minimize()">Minimize</A>
    <A HREF="javascript:onClick=Maximize()">Maximize</A>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •