getDimensions

document.viewport.getDimensions() -> { width: Number, height: Number }

Returns the size of the viewport.

The viewport is the subset of the browser window that a page occupies — the “usable” space in a browser window.

Examples


  document.viewport.getDimensions();
  //-> { width: 776, height: 580 }
дешевые авиабилеты через интернет . escada incredible me . прикольные фотки животных . форум ювелиров.