javascript是否有[Yes], [No], [Cancel]的对话框函数? 没有!vbscript才有!给分点击主题后的管理输入分数和密码确定就可以了! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没有。但是可以自己做一个类似的。下面给你一个例子:index.htm==============<script>function ask(){ var result=showModalDialog("ask.htm", "", "dialogWidth:15em; dialogHeight:8em; status:0"); switch(result) { case "yes":word.value="Yes selected"; break; case "no":word.value="No selected"; break; case "cancel":word.value="Cancel selected"; break; }}</script><input type=button OnClick="ask()" value="Press Here"><input type=text name=word>ask.htm================<body bgColor=menu><table width=100% height=100% border=0 cellpadding=10><tr><td align=center>Which one do you want to choose?</td></tr><tr><td align=center><input type=button value=' Yes ' OnClick="window.returnValue='yes';window.close()"><input type=button value=' No ' OnClick="window.returnValue='no';window.close()"><input type=button value=' Cancel ' OnClick="window.returnValue='cancel';window.close()"></td></tr></body> 如何转化成JSON js控制iframe弹出窗口 Dreamweaver cs4 序列号 上传图片的校验JS问题 从A网页post到B.php网页,请问如何在B网页里点Continue回到A网页,同时B网页不关闭 不懂JS,请教一个小问题 js 事件 IE5不支持confirm() ? 菜鸟问关于弹出窗口问题,解决马上给分,在线等 JavaScript的菜鸟问题,快来拿分 多个object处理的问题 如何用javascript改变select的options数组
index.htm
==============
<script>
function ask()
{
var result=showModalDialog("ask.htm", "", "dialogWidth:15em; dialogHeight:8em; status:0");
switch(result)
{
case "yes":word.value="Yes selected";
break;
case "no":word.value="No selected";
break;
case "cancel":word.value="Cancel selected";
break;
}
}
</script>
<input type=button OnClick="ask()" value="Press Here">
<input type=text name=word>ask.htm
================
<body bgColor=menu>
<table width=100% height=100% border=0 cellpadding=10>
<tr><td align=center>
Which one do you want to choose?
</td></tr>
<tr><td align=center>
<input type=button value=' Yes ' OnClick="window.returnValue='yes';window.close()">
<input type=button value=' No ' OnClick="window.returnValue='no';window.close()">
<input type=button value=' Cancel ' OnClick="window.returnValue='cancel';window.close()">
</td></tr>
</body>