EDITABLE CODE:
LiveDemo:jQuery - Browser Event resize() Method
Note: The parameter is function that is executed each time the event is triggered.