Consult the Scrolls

Ran into an issue with a long list of divs representing each month/day in a year and wanted to scroll today view and came up with this using

scrollIntoView() and scrollTo(x, y)

if (month.length) {
	month[0].scrollIntoView();
	window.scrollTo(0, 0);
}

For a more concrete clear example use the below example HTML which achieves this effect

Text
Inner Text
Inner Text
Inner Text
Inner Text