Home  >  Article  >  Web Front-end  >  Javascript function to obtain scroll bar position and other information_javascript skills

Javascript function to obtain scroll bar position and other information_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:46:561155browse

In fact, this code has been introduced in the previous article "Using Javascript to achieve smooth jumps between anchors". However, due to this requirement and its frequent use, this site specifically publishes this article for easy reference.

Copy code The code is as follows: