我的网页在加载页面时运行 JavaScript 函数。但是,如果用户使用后退按钮返回此页面,我不希望该函数运行。我怎样才能使用javascript来防止这种情况发生?
$(document).ready(function(){
// Do not run this function if the user has arrived here using the back button
RefreshThePage();
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)