警告視窗(Alert Window)
alert("嘰哩呱啦,嘰哩呱啦");
確認視窗(Confirm Window)
MyQ = "你確定要怎樣怎樣嗎?";
MyA = confirm(MyQ);
if(MyA) alert("就怎樣 就怎樣 就怎樣 ");
輸入視窗(Prompt Window)
MyQ = "請輸入你的XXXXXX?";
MyA = prompt(MyQ,"預設值");
if (MyA != null) alert("你輸入的值 : "+ MyA );
0 Comment:
張貼留言