document.viewport
Методы
getDimensions
document.viewport.getDimensions() -> { width: Number, height: Number }
Returns the size of the viewport.
getHeight
document.viewport.getHeight() -> Number
Returns the height of the viewport.
getScrollOffsets
document.viewport.getScrollOffsets() -> [Number, Number] also accessible as { top: Number, left: Number }
Returns the viewport’s horizontal and vertical scroll offsets.
getWidth
document.viewport.getWidth() -> Number
Returns the width of the viewport.