原先我使用
<span id=content_title></span>
<SCRIPT>content_title.innerText=document.title</SCRIPT>
在IE中可以,但在FF中不行。
后来我改成
<span id=content_title></span>
<SCRIPT>document.getElementById("content_title").textContent=document.title</SCRIPT>
这下,在FF中可以了,但在IE中又不行了。
高手求救啊