当前位置:网站首页>JS timer realizes the countdown and jumps to the login page
JS timer realizes the countdown and jumps to the login page
2022-07-26 13:51:00 【Teenagers】
count down 3 Seconds jump to the page login
if (res == " Registered successfully ") {
var wait = 3;
setInterval(function refer() {
if (wait > 0) {
document.getElementById("resTxt").innerHTML = res +wait+" Jump to the login page in seconds ";
wait--
} else {
......
}
}, 1000)
Add
clearInterval() Method to stop setInterval() Function code executed by method .
var test = setInterval("javascript function",milliseconds);
clearInterval(test)
边栏推荐
- JS, e.pagex, pagey modal box drag
- Multi objective optimization series 1 --- explanation of non dominated sorting function of NSGA2
- 图书下载 | 2022年《终身监督学习导论》Meta AI、CMU等学者合著,171页PDF
- Pytoch learning notes (III) use, modification, training (cpu/gpu) and verification of the model
- Huawei computer test ~ offset realizes string encryption
- php使用sqlserver
- Completable future practical usage
- IDEA(warning)No artifacts configured
- 2022年,我们只用一个月就“送走”了这么多互联网产品
- Why does WPS refuse advertising?
猜你喜欢

Pytoch learning notes (II) the use of neural networks

php使用sqlserver

Oom caused by improper use of multithreading

官宣!艾德韦宣集团与百度希壤达成深度共创合作

大脑带来的启发:深度神经网络优化中突触整合原理介绍

Algorithm -- continuous sequence (kotlin)

The last time I heard about eBay, or the last time

LCL three-phase PWM rectifier (inverter)

重押海外:阿里、京东、顺丰再拼“内力”

Digital collections accelerate the breaking of the circle and help the industry find new opportunities
随机推荐
Latest battle report: Ten certifications and five best practices
Comparison between SIGMOD function and softmax function
421. Maximum XOR value of two numbers in the array
Activity. Onstop() delay 10 seconds? Wonderful investigation process
Time complexity analysis of bubble sorting
官宣!艾德韦宣集团与百度希壤达成深度共创合作
[collection of topics that C language learners must know 1] consolidate the foundation and steadily improve
Multi objective optimization series 1 --- explanation of non dominated sorting function of NSGA2
Codeforces round 810 (Div. 2) [competition record]
Cavans realizes Static Rolling barrage
Use the requests library to crawl web pages
[oauth2] VII. Wechat oauth2 authorized login
【Oauth2】七、微信OAuth2授权登录
万字长文,浅谈企业数字化建模蓝图
7-25 0-1 backpack (50 points)
Pytorch学习笔记(三)模型的使用、修改、训练(CPU/GPU)及验证
Feixin, which lasted 15 years and had 500million users, was completely dead
JS submit the form to determine whether the user name and password are empty
421. 数组中两个数的最大异或值
Seven steps to copywriting script ---- document team collaborative management