我剛開始學習JavaScript,想知道爲什麼這個簡單的代碼片段在我點擊「調用函數」按鈕時會掛起。我錯過了什麼?新手:掛在功能調用瀏覽器
<html>
<head>
<script type="text/javascript">
function myfunction()
{
document.write("hello");
}
</script>
</head>
<body>
<form>
<input type="button"
onclick="myfunction()"
value="Call function">
</form>
</body>
</html>
「hangs」是什麼意思? – Canavar 2009-02-22 16:57:04
當我點擊「通話功能」按鈕時,我的Firefox標籤會無限期地顯示一個「頁面加載」圖標。 – RexE 2009-02-22 17:39:41