Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
There are no such events. There is only an exit event from full screen (by f11) mode.
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 questionAsk a Question
731 491 924 answers to any question