Visit Mozilla.org

DOM:window.screen.availLeft

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns the first available pixel available from the left side of the screen.

[edit] Syntax

iAvail = window.screen.availLeft

[edit] Example

setY = window.screen.height - window.screen.availTop;
setX = window.screen.width - window.screen.availLeft;
window.moveTo(setX, setY);

[edit] Notes

In most cases, this property returns 0.

If you work with two screens this property evaluated on the right screen returns width of the left one in pixels. This way you can detect whether there is a screen available on the left. (Similar analogy aplies to screen.availTop property.)

[edit] Specification

DOM Level 0. Not part of specification.