cf0vzq
Last Updated: February 25, 2016
·
1.354K
· rwz
Userpic

Element's scrollIntoView method

Turns out DOM-Element has a method to scroll itself into view. And looks like it's been there since forever. Even IE6 supports it.

https://developer.mozilla.org/en-US/docs/DOM/element.scrollIntoView

And look ma, no jQuery!

Say Thanks
Respond