Why is alert (text) executed before innerHTML in this script? and how to fix it so that the alert (text) is executed later? Thank!
<script language="javascript"> text = 'text'; document.getElementById('t1').innerHTML = text; document.write(text); alert(text); </script>
alertis a modal window . This means that until it is closed, the application that generated this window will not work. - user207618