JS- return on this page is prohibited page

This problem is encountered recently

The solution I Baidu and testing effective

// If you do not want users to have to return the following functions can be abbreviated or use location.replace ( 'url') hoplinks 

history.pushState (null, null, document.URL ); 
window.addEventListener ( 'the popstate', function () { 
	history.pushState (null, null, document.URL ); 
});

 

Note: The above code is prohibited returned page, you can specify which document.URL linked pages to jump  

 

Guess you like

Origin www.cnblogs.com/liuqingxia/p/11616981.html