How do I scroll to the top of the page using JavaScript? The scrollbar instantly jumping to the top of the page is desirable too as I\'m not looking to achieve smooth scroll
None of the answers above will work in SharePoint 2016.
It has to be done like this : https://sharepoint.stackexchange.com/questions/195870/
var w = document.getElementById("s4-workspace"); w.scrollTop = 0;