L' evento si verifica quando la finestra del browser cambia dimensione
$(selector).resize()
$(selector).resize(function)
<script>
$(document).ready(function(){
$("#width").text("Width: " + $(window).width());
$("#height").text("Height: " + $(window).height());
$(window).resize(function(){
$("#width").text("Width: " + $(window).width());
$("#height").text("Height: " + $(window).height());
});
});
</script>
<p id="width"></p>
<p id="height"></p>
Al resize della finestra, ne visualizza larghezza ed altezza.