aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes how to minimize browser window on minimize button click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to minimize browser window on minimize button click" Watch "how to minimize browser window on minimize button click" New topic
Author

how to minimize browser window on minimize button click

RabiDas Sharma
Ranch Hand

Joined: Nov 18, 2013
Posts: 69
Hi everyone,
can anyone tell how to minimize browser on a button click.?
Our product runs in a fullscreen mode so minimize button is required that can minimize current browser window.
Now we are having a taskbar in browser itself where a button is created on minimize button click. But I need to minimize the
entire current browser.
please assist me.please tell the algorithm to do it.

thanks in advance
with regards
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

There isn't a method to minimize the window in the way you want. You can make it very small. You can stop it from being in full screen mode. You can do what you are already doing.

If I had this problem, I'd have a button to make it "not full screen" and another button to "restore full screen."


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
RabiDas Sharma
Ranch Hand

Joined: Nov 18, 2013
Posts: 69
thanks jeanne for your reply.
But I dunno how to resize current window.

The above code can resize another window not current window.
please tell me how to resize current window.

and also please tell me how to restore current window which is in fullscreen.

thanks in advance
with regards
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 296
    
    5


Although most browsers, especially any I would use regularly, block calls to resizeTo; I'm quite happy with the size of my browser window, I don't want random people on the internet messing around with it.


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
 
wood burning stoves
 
subject: how to minimize browser window on minimize button click