[Solved] $(window).width() returns the value of which screen monitor?


Javascript is client side langauge and jquery is a javascript library.

Client side language has no power to access server side funcationality.

So obviously that code will return the client side window size.

From Wiki

Client-side scripting generally refers to the class of computer
programs on the web that are executed client-side, by the user’s web
browser, instead of server-side (on the web server). This type of
computer programming is an important part of the Dynamic HTML (DHTML)
concept, enabling web pages to be scripted; that is, to have different
and changing content depending on user input, environmental conditions
(such as the time of day), or other variables.

1

solved $(window).width() returns the value of which screen monitor?