The width property gets the width of the user's screen in pixels.
<html> <script language="JavaScript1.2"> <!-- document.write("The width of this user's screen is <b>"); document.write(screen.width + '</b> pixels'); --> </script> </html>