如何用history.back()返回前一个页面的时候取消前一页面的alert 用history.back()返回时,前一个页面有alert警告,如何能够去掉这个警告,javascript能否判断这是一个history.back()? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不可以。你可以window.locaton.href="上一页url" <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>New Page 1</title></head><script defer>if(document.all.isHistoryPage.value==""){alert("Alert only once.");document.all.isHistoryPage.value=1;}</script><body><input name="isHistoryPage" ><a href="about:blank">about:blank</a> </body></html> Click the link to solve your problem.Good luck! Javascript 中的variant js未指明的错误 父页面关闭时,子页面自动关闭 寻找人力资源投资者 求教动态生成下拉框内的元素的方法 代码$('table tr:even').addClass('even');我自己的意思是把偶数行加个even类(效果是蓝色背景),效果果却加到了奇数行 默认浏览选择文件的控件一次只能选择一个文件,能否实现选择多个文件的功能呢,就象发邮件系统那样? 如何java script访问客户机上安装的打印机列表 JS一个阴影效果。。。 关于ie浏览器点击右上角的X,提示cofirm问题 如何动态改变和返回img的src 这段代码为什么不能实现滚动到页面底部?
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>New Page 1</title>
</head>
<script defer>
if(document.all.isHistoryPage.value==""){
alert("Alert only once.");
document.all.isHistoryPage.value=1;
}
</script>
<body>
<input name="isHistoryPage" >
<a href="about:blank">about:blank</a>
</body></html>