August 1999
Intermediate to advanced
1488 pages
72h 53m
English
screen.width
The width property of the screen object accesses the width of the user's screen in pixels.
Listing 7.462 displays the width of the user's screen to the page.
<script language="JavaScript1.2">
<!-- Hide
document.write("The width of this user's screen is <b>");
document.write(screen.width + '</b> pixels');
// End hide --->
</script>
|
Read now
Unlock full access