javascript 視窗(Window)
alert(message) 彈出訊息框 <input type="button" value="button" onClick="alert('click')"> confirm(message) 彈出確認框(有確認與取消兩個按鈕) <input type="button" value="button" onClick="var reply = confirm('按下確定會傳回true, 按下取消會傳回false。'); alert(reply)"> prompt(message, inputDefault) 彈出輸入框 <input type="button" value="button" onClick=" var text = prompt('訊息顯示', '輸入之預設字'); alert('Hi, ' + text) " /> window.open(url, name, features) 開啟新視窗 <input type="button" value="button" onClick=" window.open('http://www.yahoo.com.tw') "> window.close() 關閉視窗 <input type="button" value="button" onClick=" window.close()"> setTimeout(statement, delay) 計時 <script lang="JavaScropt"> setTimeout("al