Scroll element to top of window

Is there a scroll to top code or Something? I’m just not sure of the syntax to achieve this?