Old Style Scroll & Position API DEMO

document.documentElement.scrollTop

window.pageYOffset

document.documentElement.clientHeight

document.documentElement.scrollHeight

on view port

rect.top

rect.bottom

rect.height

rect.left

rect.right

rect.width

target.offsetTop

target.offsetHeight

target.offsetWidth

target.offsetLeft

on view port

rect.top

rect.bottom

rect.height

rect.left

rect.right

rect.width

target.offsetTop

target.offsetHeight

target.offsetWidth

target.offsetLeft

on view port

rect.top

rect.bottom

rect.height

rect.left

rect.right

rect.width

target.offsetTop

target.offsetHeight

target.offsetWidth

target.offsetLeft