<html>
<style>
body {
height: 2000px;
width: 2000px;
}
button {
position: fixed;
}
</style>
<body>
<h1>The Element Object</h1>
<h2>The scrollTop and scrollLeft Properties</h2>
<p>Click "Scroll" to scroll the contents of body.</p>
<button onclick="myFunction()">Scroll</button><br><br>
<script>
function myFunction() {
const html = document.documentElement;
html.scrollLeft += 30;
html.scrollTop += 10;
}
</script>
</body>
</html>