The resize event fires when the user resizes the browser window or a resizable element.
| Method or property | IE 5.5 | IE 6 | IE 7 | IE8b1 | FF 2 | FF 3 | Saf 3.0 Win | Saf 3.1 Win | iPhone 3G | Opera 9.26 | Opera 9.51 | Konqueror 3.5.7 | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
On the window
|
Yes | Yes | Yes | Buggy | Minimal | Yes | Yes | |||||||
|
Is the resize event available on the window?
|
||||||||||||||
|
On the document
|
No | No | No | Yes | Yes | |||||||||
|
Is the resize event available on the document? |
||||||||||||||
|
On any element with
resize |
Untest |
Untest |
No | Untest |
Untest |
Untest |
||||||||
|
Is the resize event available on an element with the CSS |
||||||||||||||
|
Event bubbling
I'm not sure if this event should bubble up. |
Untest |
Untest |
Untest |
Untest |
Incor |
Incor |
||||||||
|
||||||||||||||
| Method or property | IE 5.5 | IE 6 | IE 7 | IE8b1 | FF 2 | FF 3 | Saf 3.0 Win | Saf 3.1 Win | iPhone 3G | Opera 9.26 | Opera 9.51 | Konqueror 3.5.7 | ||
In Windows XP Home, “Show window contents while dragging” can be found in My Computer -> (right click) -> Properties -> Advanced -> Settings -> Visual effects.
But how many events fire, and when? That depends partly on your Windows settings (not tested on Mac or Linux).
If you switch “Show window contents while dragging” off, all browsers fire one resize event at the end of the resize (except for IE 5.5 and 6, which fire two).
If you switch it on the browsers do the following: