이렇게 사용
Do you mean like this:
<a href="javascript:scroll(0,0)">To Top</a>
It seems this should still be supported, per MDN: https://developer.mozilla.org/docs/Web/API/Window/scroll
Does it make any difference if you use:
<a href="javascript:window.scroll(0,0)">To Top</a>
or to separate your event handler from the HTML:
<a href="#" onclick="window.scroll(0,0); return false;">To Top</a>