I\'m writing a modal popup and I need the browser to jump to the top of the screen when the open modal button is pressed. Is there a way to scroll the browser to the top usi
I know this is old, but for those having problems in Edge:
Plain JS: window.scrollTop=0;
window.scrollTop=0;
Unfortunately, scroll() and scrollTo() throw errors in Edge.
scroll()
scrollTo()