Please note, this is a STATIC archive of website www.tutorialrepublic.com from September 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Get Available Width and Height of the Screen</title> </head> <body> <script> function getAvailSize() { alert("Available Screen Width: " + screen.availWidth + ", Height: " + screen.availHeight); } </script> <button type="button" onclick="getAvailSize();">Get Available Size</button> </body> </html>