Tom*_*Tom 8 javascript back-button
我的网页在加载页面时运行javascript函数.但是,如果用户使用后退按钮返回此页面,我不希望该功能运行.如何使用javascript来防止这种情况?
$(document).ready(function(){
// Do not run this function if the user has arrived here using the back button
RefreshThePage();
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8628 次 |
| 最近记录: |