Js返回页面顶部

1 <div id="sbar"
2         style="display:block;position:fixed;top:500px;right:10px;20px;height:70px;background-color:red;cursor:pointer;" 
3         ><a style="text-decoration:none;" href="#" onclick="javascript:window.scroll(0,0);">返回顶部</div> 
原文地址:https://www.cnblogs.com/luckystar2010/p/3529501.html