I want to create a button that will minimize the browser. Anyone know how?
I want to create a button that will minimize the browser. Anyone know how?
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.
I imagine it can be done with JavaScript, I doubt PHP could do this...
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!
I can't get it to work.
Is there a way to bring back the last open application, then?
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!
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!
andyraah (02-20-2009)
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