bhy5899s
V2EX  ›  V2EX

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

  •  
  •   bhy5899s · Jul 30, 2018 · 4928 views
    This topic created in 3021 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
    o0
    Jul 30, 2018
    1
    location.replace
    a570295535
    a570295535
    Jul 30, 2018
    2
    在 js 里面加上这一句:
    $(document).ready(function(){window.history.forward(1);});
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4915 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 08:49 · PVG 16:49 · LAX 00:49 · JFK 03:49
    ♥ Do have faith in what you're doing.