I want JavaScript code to get real screen resolution(not browser) in Firefox & IE which is not effected with browser zoom or resize. I have search through stackoverflow, but could't get working solution from here & here. I have added jsFiddel which can get real screen size with chrome. Could anyone provide the better solution to get real screen size in FireFox & IE.
https://jsfiddle.net/k6jsp43f/3/
my screen resolution : <p id="demo"></p>
function getScreenSize(){
document.getElementById("demo").innerHTML = screen.width + " : " + screen.height;
}
getScreenSize();
try the get real screen resolution of the screen even browser zoom in, zoom out & by resizing the window.
I need plain javascript solution. Thank you.