if I enter to the web site "what-is-my-screen-resolution.com" it's know exactly what is my screen resolution that my computer having.
the thing is that I know that the website using Javascript to get my screen resolution but I don't know where it get that information. I want to "fake" my screen resolution for software that i'm building and i will be glad if anyone can tell me how can i change only the information that sent to the website and not really my screen resolution.
Thank you
The Javascript code they are using is:
<SCRIPT type="text/javascript">
<!--
height = screen.height;
width = screen.width;
res = document.getElementById ('resolutionNumber');
res.innerHTML = width + " X " + height;
if (res == null)
{
alert ("hello");
}
//-->
</SCRIPT>
screen.height
and screen.width
give the values of screen resolution.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.