Get Mobile Screen Resolution Javascript - Recognize and honor accomplishments with our Get Mobile Screen Resolution Javascript. Inspire and motivate with personalized certificates.
To capture the Screen Resolution, see below sample JS Code: var swidth = screen.width; var sheight = screen.height; var screenResolution = swidth + "px" + " x " + sheight + "px"; document.write("Screen Resolution: " + screenResolution); Sample Output: Screen Resolution: 1680px x 1050px Simply use the width and height property of the window.screen object to get the resolution of the screen (i.e. width and height of the screen). screen.width screen.height Bonus: Firefox now has "Responsive Design Mode" Which is the best for doing responsive testing that I've seen on any browser.
Get Mobile Screen Resolution Javascript
Get Mobile Screen Resolution Javascript
function getResolution() 10 alert("Your screen resolution is: " + window.screen.width * window.devicePixelRatio + "x" + window.screen.height * window.devicePixelRatio); 11 12 13 14 15