DOM:window.screen
z Mozilla Developer Center, polskiego centrum programistów Mozilli.
UWAGA: Tłumaczenie tej strony nie zostało zakończone.
Może być ona niekompletna lub wymagać korekty.
Chcesz pomóc? | Dokończ tłumaczenie | Sprawdź ortografię | Więcej takich stron...
Spis treści |
[edytuj] Podsumowanie
Returns a reference to the screen object associated with the window.
[edytuj] Składnia
screenObj = window.screen
[edytuj] Przykład
if (screen.pixelDepth < 8) {
// use low-color version of page
} else {
// use regular, colorful page
}
[edytuj] Uwagi
The screen object is a special object for inspecting properties of the screen on which the current window is being rendered.
Ten obiekt posiada następujące własnośći:
- availTop
- Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features.
- availLeft
- Returns the first available pixel available from the left side of the screen.
- availHeight
- Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows.
- availWidth
- Returns the amount of horizontal space in pixels available to the window.
- colorDepth
- Zwraca głębię koloru ekranu.
- height
- Zwraca wysokość ekranu w pikselach.
- left
- Gets/sets the current distance in pixels from the left side of the screen.
- pixelDepth
- Gets the bit depth of the screen.
- top
- Gets/sets the distance from the top of the screen.
- width
- Zwraca szerokość ekranu w pikselach.
[edytuj] Specyfikacja
DOM Level 0. Nie jest częścią żadnego standardu.