2009-09-08 11 views

回答

2

爲我工作IE8在Vista上,(8.0.6001.18813)

<script> 
function isNumberKey() { 
    document.title += 1; 
    return false; 
} 
</script> 
<input type="text" onkeypress="return isNumberKey();"> 

我只看到標題獲得附加單「1」。也許你有其他代碼會出錯?你發佈的代碼有一個明顯的語法錯誤,所以也許還有別的東西你不在了?