How To How can I minimize the entire browser?

iscjm

Junior Member
Jul 9, 2021
5
0
6
I built a Web server myself, want to achieve the entire browser minimization,except "JAVA" and "JSP", what method can achieve this effect. There are a lot of examples of browser minimization using "JS" on the internet, but none of them worked for me. Some people mentioned that it might be the ActiveX controls. I don't know what the problem is. Please help me to solve the problem, because I am a rookie, please tell me detailed , thank you very much! Here is an example of using JS for browser minimization that I found on the Internet:

<object id="min" classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Minimize">
</object>
<object id="max" classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">
<param name="Command" value="Maximize">
</object>

<input type="button" value="minimize" οnclick="min.Click()">
<input type="button" value="maximize" οnclick="max.Click()">
 

mikeymikec

Lifer
May 19, 2011
20,032
14,391
136
My answer may not be considered helpful in a programming sense, but dear god please don't do this. If there's a top-ten list of most obnoxious website behaviours, this should be on it.

Seriously, what do you want to actually achieve in the long run and why do you think this would help to do that? There may be an all-round better alternative that you haven't considered and may be more doable.
 
  • Like
Reactions: Ken g6

purbeast0

No Lifer
Sep 13, 2001
53,487
6,331
126
I'm not even sure what you are talking about with JS. There is no way you can minimize a browser in JS. I'm pretty confident there is also no way to do this in JAVA/JSP. Your example above doesn't "minimize the browser in JS". All it does is call a function named min.Click() and max.Click() when they are clicked.

I don't even know why you would want to do this.
 

iscjm

Junior Member
Jul 9, 2021
5
0
6
I'm not even sure what you are talking about with JS. There is no way you can minimize a browser in JS. I'm pretty confident there is also no way to do this in JAVA/JSP. Your example above doesn't "minimize the browser in JS". All it does is call a function named min.Click() and max.Click() when they are clicked.

I don't even know why you would want to do this.
 

iscjm

Junior Member
Jul 9, 2021
5
0
6
My goal is to have a button page come into focus periodically, and I've tried a lot of ways that don't work, but in my tests I found that minimizing the browser works for me.I found a piece of JS code that does minimize the entire IE, but the browser version is IE7 and must allow ActiveX controls for this to work.
 

purbeast0

No Lifer
Sep 13, 2001
53,487
6,331
126
I don't even know what you are talking about with "having a button page come into focus periodically."

And if you are relying on people having IE7 for whatever it is you are trying to do, to work, you've already lost.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,584
4,495
75
It sounds like you want to develop

BUY THIS PRODUCT!

a pop-up reminder or something.

BUY THAT PRODUCT!

Unfortunately, advertisers would love to hijack this.

YOUR PC HAS A FATAL VIRUS! ONLY OUR PRODUCT CAN SAVE IT!

Do you see how annoying having an ad "come into focus periodically" could be?

/me turns off pop-ups. ;)

That's why browsers don't allow pop-ups at all without user interaction, like the user clicking something. And most block even those pop-ups by default.

Perhaps you want to work on a browser add-on? Those have a lot more control. There's also the Notifications API. (which users have to grant permission for.) And of course you could display a position: fixed element within a web page whenever you want.