a=window.confirm("是否??")
if(a==true)
{location.href="1.html"}
else
{location.href="2.html"}
if(a==true)
{location.href="1.html"}
else
{location.href="2.html"}
解决方案 »
- 新手请教一个问题
- jquery 浮动层问题
- js怎么获取这几个div??
- 我想建一个js库,收集各种js广告效果的代码,请大家帮忙想办法
- alert(Date().toLocaleDateString())为何报错呢?
- 请帮看一下这个js脚本怎么不执行????????
- 请xiaojing7 帮忙,谢谢
- ext-1.1.1--Hello World 例子问题
- 如何使用日期控件
- 如何隐藏IE标题栏中Microsoft Internet Explorer字样?
- 在windows 2003上windows script debugger不起作用,我怎么在windows 2003上调试javascript了?
- 如何在页面上,对表格内容进行排序
haha = msgbox ("问你呢!",4,"标题")
If haha = vbYes Then Location.href="http://www.yes.com"
If haha = vbNo Then Document.Write "http://www.no.com"
var rt=window.showModalDialog("myMsg.htm","","center:yes");
if (rt=="YES") window.open("yes.htm","_self");
else if (rt=="NO") window.open("no.htm","_self");第二部分要素:(yes.htm的部分内容)
window.returnValue="NO";
function onYesClick(){window.returnValue="YES";window.close();}
function onNoClick(){window.close();}
呵呵,不好意思,太粗心了