系统对话框
浏览器通过alert(),confirm(),prompt()可以调用系统对话框向用户显示信息。confirmif(confirm("are you sure?")) { alert("I'm so glad you're sure"); }else{ alert("I'm sorry to hear you're not sure"); }prompt()varreuslt = prompt("what's your name","");if(reuslt !=null) { alert("welcome"+reuslt); } //显示“打印”对话框window.print(); //显示“查找”对话框window.find();
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。