How does JavaScript object `window.screen.width` detect my ScreenResolution in Ubuntu 10.4
How does JavaScript object window.screen.width
detect my ScreenResolution in Firefox开发者_如何学Go under Ubuntu 10.4?
I mean what it accesses in OS to retrieve this data - OS variable or OS config files like a) .xprofile, b) kdm/gdm, c) xorg.conf. ?
It's almost certainly an implementation detail that could vary from one user-agent (browser) to another.
精彩评论