//jQuery solution
var me = jQuery || $.noConflict();
me(document).ready(function() {
me(‘#heightSpan’).html(me(window).height());
me(‘#widthSpan’).html(me(window).width());
me(window).on(‘resize’, function(){
me(‘#heightSpan’).html(me(window).height());
me(‘#widthSpan’).html(me(window).width());
});
});
width: px
height: px
[/sourcecode]