Answer the question
In order to leave comments, you need to log in
Onresize does not work correctly in IE (8 and below), how to fix it?
The bottom line is that if you change exactly the browser window (for example, with the "maximize" button), the onresize event will work, but if you just change the scale, it won't work. Although it is more important for me to catch the change in scale, and not the change in the window. It doesn't catch on document either. Is there any way to make the following and similar code work properly in IE? I would be grateful for the answers, thanks!
window.onresize = function(event) {
alert('!');
};
Answer the question
In order to leave comments, you need to log in
I tried this code jsfiddle.net/petroveg/kfhn8L8h/1
I can’t judge for sure, because I check the 8th version in the emulation mode of IE 11th version itself. Zooming, border shifting, the “collapse / maximize” button - everything worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question