<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript'>
$(window).load(function(){
$(window).resize(function() { console.log('you resized the window!'); });
});
</script>
</head>
<body>
<div id='testDiv'>HERE'S SOME TEXT</div>
</body>
</html>