当前位置:网站首页>JS -- prevent automatic recovery of page position
JS -- prevent automatic recovery of page position
2022-06-11 23:59:00 【HarryHY】
Prevent automatic recovery of page position
if (history.scrollRestoration) {
history.scrollRestoration = 'manual';
}
View the current page scrolling recovery behavior
const scrollRestoration = history.scrollRestoration
if (scrollRestoration === 'manual') {
console.log('The location on the page is not restored, user will need to scroll manually.');
}
边栏推荐
- [JUC series] overview of executor framework
- [day 7 of JUC learning] reentrantlock and reentrantreadwritelock
- Lake Shore VNF 系列低温恒温器系统——流动蒸汽中的样品
- 2022 618笔记本选购指北
- Antigen products enter the family, and Chinese medical device enterprises usher in a new blue ocean
- Ar helps brand stores achieve global data growth
- What is webstorage? And cookies
- chisel环境搭建(win10 + vscode)
- Read the 23 steps of the enterprise through the financial report
- 11. conditional statement if, switch
猜你喜欢

点云库pcl从入门到精通学习记录 第八章

自定义JSP标签->概念->生命周期

(greedy + longest ascending subsequence) acwing 896 Longest ascending subsequence II

mysql5和mysql8同时安装

HMS core shows the latest open capabilities in mwc2022, helping developers build high-quality applications

Oracle uses Navicat tool to import and export data
![[signals and systems] (XXII) Laplace transform and complex frequency domain analysis - s-domain analysis](/img/35/a23646ac8501ac646cd44eeecd5b79.jpg)
[signals and systems] (XXII) Laplace transform and complex frequency domain analysis - s-domain analysis

Solve the problem of slow downloading plug-ins for idea

SAP SD create / modify price list

(dp+ longest common subsequence) acwing 897 Longest common subsequence
随机推荐
[day 7 of JUC learning] reentrantlock and reentrantreadwritelock
Procédures d'introduction et d'installation de sonarqube
HMS core shows the latest open capabilities in mwc2022, helping developers build high-quality applications
Stm32f103c8t6 related knowledge
gin解决跨域问题
2022 618 notebook shopping guide
Jetpack architecture component learning (3) -- activity results API usage
Share a treasure website necessary for new media operation for free
I2C read / write process
Read the 23 steps of the enterprise through the financial report
Lake Shore—SuperVariTemp 低温恒温器
Setting alias alias and @ reference note
[signals and systems] (XXI) Laplace transform and complex frequency domain analysis -- Laplace transform and its properties
El scrollbar display horizontal scroll bar
Teach you to play with SSM framework
CD process
Pleasant and burden free cross process communication
What is bom? And knowledge points
C language leetcode deleting duplicate items in an ordered array
MySQL some simple commands