返回键劫持,强制跳转到指定链接

2018-1-29 晦涩sunshine PHP学习笔记

返回键劫持,强制跳转到指定链接

代码如下:


window.onhashchange=function(){jp();};
function hh() {history.pushState(history.length+1, "message", "#"+new Date().getTime());}
function jp() {location.href="/jump.php";}
setTimeout('hh();', 50);


标签: 返回键 劫持

发表评论:

Powered by emlog sitemap