2

image

I have been suffering to get it how to get height and width of displayed pic browser width(without scroll bar) and height(without tootlbar and taskbar and address)

Abhinash Majhi
  • 499
  • 1
  • 4
  • 16

1 Answers1

3

You can get browser dimensions with javascript using window.innerHeight.

var h=window.innerHeight;

You can use the innerWidth for width too. There is a table with browser compatibility at w3schools.

zJorge
  • 798
  • 2
  • 13
  • 26