W
W
woltron1012015-10-20 22:29:16
JavaScript
woltron101, 2015-10-20 22:29:16

What is the browser button click event called "minimize to window"?

what is the name of the button click event in the browser "minimize to window"? resize doesn't fit
d0c84ed6af1745bebce1d5bad2d7a084.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Taratin, 2015-10-20
@Taraflex

There are no such events. There is only an exit event from full screen (by f11) mode.

I
Ivan, 2015-10-20
@IvanTheCrazy

Catch onresize for the window :)

W
woltron101, 2015-10-20
@woltron101

maybe some crutches?
i need to resize after button click

V
Vladislav Startsev, 2015-10-21
@esvlad

Determine the width / height of the browser (not the window) and don't sweat it.
document.body.clientWidth;Specifies the width of the browser.
document.body.clientHeight;Specifies the height of the browser.
$(window).width();Specifies the width of the browser, but only when jQuery is present.
$(window).height();Specifies the height of the browser, but only when jQuery is present.
For example: if the browser width is less than 1200 pixels, change the width attribute of elements with the scaleImg class to -25%.

$(document).ready(function() {
    if($(window).width()<1200){
      $('.scaleImg').each(function(){
        $(this).attr('width',Math.round(($(this).attr('width'))*0.75));
        $(this).attr('height',Math.round(($(this).attr('height'))*0.75));
      });
    }
  });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question