Jquery Resize Event

Jquery Resize Event
.resize( handler(eventObject) )
handler(eventObject) A function to execute each time the event is triggered.
.resize( [eventData], handler(eventObject) )
eventData A map of data that will be passed to the event handler.
handler(eventObject) A function to execute each time the event is triggered.
.resize()
<div id="mydiv"></div>
jQuery(document).ready(function () {
       $(window).resize(function () {
       $('#mydiv').prepend('<div>Width :' + $(window).width() + ' Height : ' + $(window).height() + '</div>');
    });
});
Demo / Download
Jquery Resize Event Jquery Resize Event Reviewed by Bhaumik Patel on 10:39 PM Rating: 5