标签:forward onload 完成 on() ext script alert null 后退
<script type="text/javascript">
window.onload=function(){
if (window.history && window.history.pushState) {
window.onpopstate=function(){
window.history.pushState(‘forward‘, null, ‘#‘);
window.history.forward(1);
alert("请先完成注册,再进行其他操作!")
}
window.history.pushState(‘forward‘, null, ‘#‘);
window.history.forward(1);
}
}
</script>
标签:forward onload 完成 on() ext script alert null 后退
原文地址:http://www.cnblogs.com/mengcode/p/7132110.html