Here is the code:
document.bgColor = "red";
<script>alert("after para 1");</script>
<script>alert("after para 2");</script>
<script>alert("after para 3");</script>
How do you learn about how this is exactly supposed to work?
Just to mention, nobody uses
alert() nowadays, we use
console.log(), which does not block the page from loading.