要实现这样的功能的JS 怎么写? 打开页面,弹出对话框,只有确定,没有取消,点确定跳转到一个设定网址,关闭对话框也跳转到设定网址 当前窗口打开 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>alert("只有确定,没有取消");window.open("url");</script> function mustTiao() { if(confirm("必须进去!")) { window.open("url"); } else { window.open("url"); }} } <script>alert("只有确定,没有取消");window.open("url");</script>应该能行。 用alert()方法,或者用DIV模拟弹出窗口 <html> <head> <script type="text/javascript"> function aaa() { alert("oh no"); window.location="http://community.csdn.net/"; } </script> </head> <body onload = aaa();> <body></html>在本窗口打开 楼主试试 是这个效果吗 $.ajax同步请求执行顺序,怎么没有等待结果返回,就执行下边语句了? 100分求此答案 关于JS动态增删改li节点数据的问题 javascript怎样以绝对地址的方式取得frame 使用My97DatePicker遇到的问题 这个函数错哪了 javascript简单问题,在线等~~~ 怎么销毁数组的一项 jquery sortable 如何在打印时隐藏一个按钮 打开窗口的问题,不知道如何解决 JavaScript setTimeout jquery $("#xxx").attr("check",true);时确没有勾选上
function mustTiao()
{
if(confirm("必须进去!"))
{
window.open("url");
}
else
{
window.open("url");
}
}
}
应该能行。
<head>
<script type="text/javascript">
function aaa()
{
alert("oh no");
window.location="http://community.csdn.net/";
}
</script>
</head>
<body onload = aaa();>
<body>
</html>
在本窗口打开 楼主试试 是这个效果吗