Interaction design • webdevelopment • web art • photography

June 2012

js screen.width/height on secondary displays

Just noticed a curious Javascript bug in Internet Explorer 9: the screen.width/height properties always return the dimensions of the main monitor, even when the active browser window is on the second monitor.

Upon further testing, it turns out Safari for Windows has the same problem. Chrome, Opera and Firefox all report the correct dimensions, however.