I want to have a function that runs every screen update in javascript a while (true) loop freezes the entire screen:
<!DOCTYPE html>
<html>
<body>
<p id="label">Something should display</p>
<script>
var l = document.getElementById("label");
while (true){
l.innerHTML = "Something";
}
</script>
</body>
</html>
So is there a way to kind of do this???