var qing=confirm("等一下去哪里吃饭");
if(qing==false)
{
document.write("街边");
}else{
document.write("五星级酒店");
}
if(qing==false)
{
document.write("街边");
}else{
document.write("五星级酒店");
}
2015-03-19
最新回答 / 问到底
//能有我的标准?<!DOCTYPE html><html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> <script type="text/javascript"> // 新窗口打开时弹出确认框,是否打开 function o...
2015-03-17
最新回答 / _Exception
function openWindow(){ var window= confirm("你确定打开网页?"); if(window==true){ var url = prompt("请输入网址","http://www.imooc.com/"); window.open('http://www.imooc.com','_blank','width=400px,height=500px,menubar=...
2015-03-17