-1

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

Oren Maoz
  • 11
  • 1
  • 4

1 Answers1

0

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.

Xavier Egea
  • 4,712
  • 3
  • 25
  • 39