codeGK
Code it ALL
JavaScript Screen - CodeGK
♦ JavaScript Screen

♣ About JavaScript Screen

The actual monitor dimenioning can be retrieved using screen methods.
This metrics can be useful in providing user the desired set of auto-resolution for full sized window.

♣ screen.height in HTML DOM

In this example, screen.height is illustrated.
Example
Input:
Output:

♣ screen.width in HTML DOM

In this example, screen.width is illustrated.
Example
Input:
Output:

♣ screen.availHeight in HTML DOM

In this example, screen.availHeight is illustrated.
Example
Input:
Output:

♣ screen.availWidth in HTML DOM

In this example, screen.availWidth is illustrated.
Example
Input:
Output:

♣ screen.colorDepth in HTML DOM

In this example, screen.colorDepth is illustrated.
Example
Input:
Output:

♣ screen.pixelDepth in HTML DOM

In this example, screen.pixelDepth is illustrated.
Example
Input:
Output:
Prev_Lesson