Untitled
4 years ago in Plain Text
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Simple updater</title>
</head>
<body>
<div id="counter">
</div>
</body>
<script>
let counter = 0;
function increaseCounter() {
const element = document.getElementById('counter');
element.innerText = counter.toString();
counter++;
}
setInterval(increaseCounter, 1000);
</script>
</html>