->
最近有點勤著再複習javascript…..
因為要用到~_~…
不過有沒用真的有點忘了…
乾脆來note一下… 再怎麼基本都要筆記><~
alert() 對話框
- alert(argument)
也可以搭配按鈕…
- <input type="button" value="click me "
- onClick="alert(argument)" >
Confirm() 對話框有確定、取消~
- confirm("argument")
- <script>
- function useconfirm( )
- { if ( confirm ("yes or no ") )
- { document.write("ooxx") }
- }
- </script>
- <input type="button" value=" yes & no " onClick="useconfirm( ) " >
confirm的 確定 跟 取消 分別傳送 TRUE and FALSE
Prompt() 對話框,如VB的msgbox
- prompt(argument, default)
加入書簽:













本文共有 0 條評論