Question about scroll event

hello,
thankyou for the response. As i want to built an event where button is clicked then the page scroll back on the top. For that the javascript is not working