Element.scrollIntoViewIfNeeded()
- UNOFFIf the element is fully within the visible area of the viewport, it does nothing. Otherwise, the element is scrolled into view. A proprietary variant of the standard Element.scrollIntoView()
method.
IE
- 5.5 - 10: Not supported
- 11: Not supported
Edge
- 12 - 18: Not supported
- 79 - 89: Supported
- 90: Supported
Firefox
- 2 - 86: Not supported
- 87: Not supported
- 88 - 89: Not supported
Chrome
- 4 - 14: Support unknown
- 15 - 89: Supported
- 90: Supported
- 91 - 93: Supported
Safari
- 3.1 - 5: Support unknown
- 5.1 - 13.1: Supported
- 14: Supported
- TP: Supported
Opera
- 9 - 12.1: Not supported
- 15 - 72: Supported
- 73: Supported
Safari on iOS
- 3.2 - 4.3: Support unknown
- 5 - 13.7: Supported
- 14: Supported
Opera Mini
- all: Not supported
Android Browser
- 2.1 - 2.2: Support unknown
- 2.3 - 4.4.4: Supported
- 89: Supported
Opera Mobile
- 10 - 12.1: Not supported
- 62: Supported
Chrome for Android
- 89: Supported
Firefox for Android
- 86: Not supported
UC Browser for Android
- 12.12: Supported
Samsung Internet
- 4 - 12.0: Supported
- 13.0: Supported
QQ Browser
- 10.4: Supported
Baidu Browser
- 7.12: Supported
KaiOS Browser
- 2.5: Not supported