Possible Duplicate:
Javascript window resize event
I want to get an event which is triggered when a user change the size of the actual window.
Any idea to do this ?
Possible Duplicate:
Javascript window resize event
I want to get an event which is triggered when a user change the size of the actual window.
Any idea to do this ?
In javascript
window.onresize = function(event) {
// Do what you want
}
In jquery
$(window).resize(function() {
// Do what you want
});
you can use window object, resize
event:
$(window).resize(function(){
...
})
$(window).resize(function() {
alert("you've resized the window");
});
The resize event is sent to the window element when the size of the browser window changes