Jsブラウザページの返却を停止します.
1254 ワード
$(document).ready(function(e) {
var counter = 0;
if (window.history && window.history.pushState) {
$(window).on('popstate', function () {
window.history.pushState('forward', null, '#');
//window.location.href="ad.html"; //
window.history.forward(1);
alert(" ");
});
}
window.history.pushState('forward', null, '#'); // IE
window.history.forward(1);
});