Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to minimize browser window on minimize button click

 
RabiDas Sharma
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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."
 
RabiDas Sharma
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic