Scrolltop w JavaScript

window.scrollTo(0, 0);
Undefined