新手向高手的紧急求救!!
先请看一看下面的这段代码:
<span id=span1 style="font-size:16pt">old text</span>
<script language="JavaScript">
alert("about to change the text");
span1.innertext="out with the old and in with the new";
但是,为什么我单击了弹出的警告框后,
span1.innertext="out with the old and in with the new";这句执行后应该改变输出的文本,可是就是只显示“Old Text”,不能变为“out with the old and in with the new"
这究竟是为什么?为什么!!!!
请高手指点一下小弟,不胜感激!!!