//禁用后退按钮
function stopHistoryGo() {
	//禁用回退
	window.location.hash="no-back-button";
	window.location.hash="Again-No-back-button";//again because google chrome don't insert first hash into history
	window.location.hash="Again-No-back-button";
	window.onhashchange=function(){window.location.hash="no-back-button";}
	window.setTimeout(function(){window.location.hash="Again-No-back-button";},1000);
}

  

相关文章:

  • 2021-07-17
  • 2022-12-23
  • 2022-01-27
  • 2021-10-19
  • 2022-12-23
  • 2021-09-08
  • 2021-08-05
猜你喜欢
  • 2022-12-23
  • 2022-01-31
  • 2021-06-23
  • 2021-10-10
  • 2021-07-22
  • 2022-12-23
相关资源
相似解决方案