MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/8d22564490d8

ensureElementIsVisible

ensureElementIsVisible( element )
Return type: no return value
If the specified element is not currently visible to the user, the displayed items are scrolled so that it is. If the item is already visible, no scrolling occurs.

Document Tags and Contributors

 Contributors to this page: Sheppy, Marsf, Ptak82, Dria
 Last updated by: Sheppy,