i have a <button>
calls a function
that scroll to the top of the page,
how to appear this button automatically after 800px. using pure JavaScript Only?
<button class="button">
GO To UP
</button>
var button = document.querySelector(".button");
button.onclick = function () {
window.scrollTo(0, 0);
};