<script type="text/javascript"> $(function(){ report(); }); function report() { $('#display').html( $('#testSubject').width()+'x'+$('#testSubject').height() ); } </script>