A
A
Alexey Nikolaev2014-08-13 19:40:18
JavaScript
Alexey Nikolaev, 2014-08-13 19:40:18

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('!');
};

PS The jQuery version doesn't work either, because is a wrapper.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Petrov, 2014-08-13
@Heian

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.

S
sasha, 2014-08-13
@madmages

shut up and bury the explorer. people like you still use explorer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question