you have to do this with javascript, check out
http://javascript.internet.com and look around in the subheading, it is somewhere out there, but here is something you can use it will show you the screen height and width, you can also use screen.availHeight and screen.availWidth, and that will show you the LIVE area, ie. without the scrollbars, and menubar and such, only the LIVE window area where content is shown
<script>
var screenHeight = screen.height;
var screenWidth = screen.width;
document.writeln('Your total screen height is ' + screenHeight + 'px <br><br>');
document.writeln('Your total screen widthis ' + screenWidth + 'px <br><br>');
</script>