Javascript没有触发的任何原因?
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/javascript">
function ChangeDisplay()
{
alert("Changing");
document.getElementById('warningDiv').innerHTML = "<h1>Change Text</h1>";
setTimeout(finalize,6000);
}
function finalize()
{
alert("Done");
document.getElementById('warningDiv').innerHTML="<h1>Done</h1>";
}
</script>
<h2>
Welcome to ASP.NET!
</h2>
<p>
<div id="warningDiv">Hello World</div>
</p>
<script>
window.onload = setTimeout(ChangeDisplay, 3000);
</script>