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

JavaScript

이렇게 사용

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

firefoxjavascript scroll불여우파이어폭스
블로그
프로젝트
스터디
포트폴리오