For various silly reasons, I'd like to be able to detect the rectangle of the browser window on screen. Title bar and all.
Is this possible, or is JavaScript limited to the view port of its page?
Edit: I may have been unclear, but view port is the portion of the page that's visible in the window. This may not be a term commonly used with browsers, but it's common in graphics.
For standards compliant browsers:
X - window.screenX Y - window.screenY
window.screenX
window.screenY
For IE:
X - window.screenLeft Y - window.screenTop
window.screenLeft
window.screenTop
Keep in mind, implementations vary. Beware of multi-monitor setups...
1.4m articles
1.4m replys
5 comments
57.0k users