'screen' Example : screen « Javascript Objects « JavaScript Reference

'screen' Example

    
<html>
<body>
<button onclick="alert(screen.width + 'x' + screen.height);">
Screen resolution
</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'screen' Syntax and Note
2.'screen' JavaScript Properties
3.'screen' is applied to