I need an API to find screen resolution in JavaScript then pass it html5 video player. I tried
//document.write(screen.width+'x'+screen.height);
But its not working for me.
Asked
Active
Viewed 416 times
0

Brian Tompsett - 汤莱恩
- 5,753
- 72
- 57
- 129

user1528800
- 29
- 4
-
Check this link http://stackoverflow.com/questions/10524241/html5-fitting-to-screen-resolution – riti Sep 07 '12 at 08:39
-
And this: http://stackoverflow.com/questions/2242086/how-to-detect-the-screen-resolution-with-javascript – Manatok Sep 07 '12 at 08:39