如何在点击一个链接的时候,弹出一个confirm?如果点击confirm的确定按纽就新打开一个窗口,按取消就不打开?急急!!! <a href="#" onclick="if(confirm('open it?')) window.open('about:blank','new_win')">TRY ME!</a> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <a href="#" onclick="doClick()">link</a>function doClick(){ if(confirm("要打开新窗口吗?")){ window.open("xxx.htm",""); }} <a href="" onclick="if(confirm('Confirm to Hyper ?') == '0'){ window.open('http://33990521.go.nease.net'); return true; }else{return false}">33990521 ERP教學網<a> window.open 全被网络助手拦截, 且上面三位兄弟的代码实现起来都有点麻烦呀.<a href=ab.htm onclick="return confirm('Are you sure?')">简单就一句话</a> <a href="" onclick="if(confirm('Confirm to Hyper ?') == '0'){ window.location = 'http://33990521.go.nease.net'; return true; }else{return false}">33990521 ERP教學網<a> <a href='http://33990521.go.nease.net' onclick="return confirm('Confirm to Hyper ?')">33990521 ERP教學網</a>流星雨, 你说谁的代码简单些呀? meizz(梅花雪) 的代码简单爱!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!怎么你的信誉这么高,MM or GG? php文件中显示js文件中的某个变量的值 jquery validate 插件 怎么实现页面一加载完就校验数据? 关于JAVAscrip(if)的问题 JS做IF条件判断时候,如果有两个条件应该怎么写? 请教函数问题和日期校验 <br>怎么替换为回车? 状态条简易走马灯的问题 如果将捕获的event返回? 在网页里如何屏蔽掉右键功能? 搜索框相关 怎样用JAVASCRIPT 得到<html></html>之间的内容? 求一准正则表达式
if(confirm("要打开新窗口吗?")){
window.open("xxx.htm","");
}
}
onclick="return confirm('Confirm to Hyper ?')">33990521 ERP教學網</a>流星雨, 你说谁的代码简单些呀?
怎么你的信誉这么高,MM or GG?