display order
1. Display the prompt box (the page is blank at this time)
2. HelloWorld is displayed normally after the click is determined
<body>
<script>
document.write("<h1>HelloWorld</h1>");
document.write("<h1>HelloWorld</h1>");
alert("");
</script>
</body>
Why does the page display the alert () box first instead of HelloWorld, first? my code is clearly written on it by HelloWorld?