bhy5899s
V2EX  ›  V2EX

如何让网站页面跳转后不能返回上一个页面?

  •  
  •   bhy5899s · Jul 30, 2018 · 4652 views
    This topic created in 2856 days ago, the information mentioned may be changed or developed.
    我是用这个命令跳转的<meta http-equiv="refresh" content="0.1; url=">,但是跳转后还能点击返回上一个页面,怎么让它跳转后不能返回上一页。
    2 replies    2018-07-30 11:08:05 +08:00
    o0
        1
    o0  
       Jul 30, 2018
    location.replace
    a570295535
        2
    a570295535  
       Jul 30, 2018
    在 js 里面加上这一句:
    $(document).ready(function(){window.history.forward(1);});
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   997 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:28 · PVG 06:28 · LAX 15:28 · JFK 18:28
    ♥ Do have faith in what you're doing.