0
$(window).height();
$(window).width();

Currently I am using these two codes to get the screen size,However, if the source code panel/debug panel is on. The size of the screen will exclude, how to include the source code bar in the screen size result? Thanks.

Also, is there anyway to get the actual screen resolution of the user screen? (in case the user is not maximize the browser). Thanks

user782104
  • 13,233
  • 55
  • 172
  • 312

3 Answers3

1

screen.height and screen.width gets the screen size, as for the debug panel, there is no way to know what size that is and exclude it from the window size etc.

adeneo
  • 312,895
  • 29
  • 395
  • 388
0

Use

screen.height;
screen.width;

to get the screen resolution

sroes
  • 14,663
  • 1
  • 53
  • 72
0

I think it's duplicate Question please check your Question similar to this

jQuery Screen Resolution Height Adjustment

See working example for your assitance http://jsfiddle.net/9mQ2b/13/

possible with

screen.height;
screen.width;
Community
  • 1
  • 1
ameya rote
  • 1,116
  • 1
  • 9
  • 13