codice:
<html>
  <head>
     <script>
          function risoluzioneVideo(){
            var W = screen.width;
            var H = screen.height;
            alert("L'altezza è: "+ H + "; la larghezza è: " + W)
          }
     </script>
  </head>
  <body onLoad="risoluzioneVideo()">
  </body>
</html>