<script>
function showDialog(){
var arr = showModalDialog("dialog.html", "", "dialogWidth:15.5em; dialogHeight:5.5em; status:0");
if (arr != null && arr)
window.open("show.html");
else
window.open("other.html");
}
</script>
<BODY BGCOLOR="#FFFFFF">
<input type="button" value="show" onclick="showDialog();">
</BODY>dialog.html
<script>
function ret(para){
window.returnValue =para ;
window.close();
}
</script>
<BODY BGCOLOR="#FFFFFF">
<table align="center"><tr><td>
<input type="button" name="b1" value="《是》" onclick="ret(true)">
<td>
<input type="button" name="b2" value="《否》" onclick="ret(false)">
</table>
</BODY>
function showDialog(){
var arr = showModalDialog("dialog.html", "", "dialogWidth:15.5em; dialogHeight:5.5em; status:0");
if (arr != null && arr)
window.open("show.html");
else
window.open("other.html");
}
</script>
<BODY BGCOLOR="#FFFFFF">
<input type="button" value="show" onclick="showDialog();">
</BODY>dialog.html
<script>
function ret(para){
window.returnValue =para ;
window.close();
}
</script>
<BODY BGCOLOR="#FFFFFF">
<table align="center"><tr><td>
<input type="button" name="b1" value="《是》" onclick="ret(true)">
<td>
<input type="button" name="b2" value="《否》" onclick="ret(false)">
</table>
</BODY>
解决方案 »
- JavaScript中当两个事件同时响应是怎么处理的?
- 在线等--跪求高手帮助啊
- 不知道JS里面有没有让DIV等比例缩放的方法
- 如何用javaScript添加行?
- 如何动态设置页面中指定元素的id?还有为什么我修改某标签的outerHTML总是无效?
- 我想学习javascript介绍我点比较好一点的出门书籍,
- 我想知道ff下用什么代替ondragstart
- 可不可以用javascript实现下载当前页面?
- 如何实现在页面中观看电影?
- 关于Frame的问题?谢谢
- 在HTML中<META NAME="Generator" CONTENT="EditPlus">代表什么意思?起到什么作用?在什么情况下要使用这样的标记?
- 巨巨初级的问题 高分送出
if(confirm("到我这里看看好吗???"))
window.open("http://colorweb.go.163.com")
else
window.open("http://luvky.myrice.com")
</script>
有没有办法将确定和取消改为“否”和“是”呢?
msgbox "a",4
</script>
execScript('ret=msgbox("Yes or no?",4)','vbscript')
if(ret==6)
window.open("http://colorweb.go.163.com")
else
window.open("http://luvky.myrice.com")
</script>