[js] Firefox 에서 javascript:scroll(0,0) 안될 때

이렇게 사용

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>

– https://support.mozilla.org/ko/questions/1051048

본문에 대해 문의가 있으신 분은 kty0529@gmail.com로 이메일 보내주세요.