http://www.w3schools.com/jquery/event_resize.asp
resize() event occurs when browser window changes size:- window.resize(function(){alert("hi")});