当前位置:网站首页>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)
边栏推荐
- Ultimate doll 2.0 | cloud native delivery package
- Digital collections accelerate the breaking of the circle and help the industry find new opportunities
- Win11+vs2019 configuration yolox
- Algorithm -- continuous sequence (kotlin)
- [oauth2] VIII. Configuration logic of oauth2 login -oauth2loginconfigurer and oauth2clientconfigurer
- Codeforces Round #810 (Div. 2)【比赛记录】
- Ros2 learning (1) introduction to ros2
- DP sword finger offer II 100. sum of minimum paths in triangle
- 421. 数组中两个数的最大异或值
- Parent class reference to child class (parent class reference points to child class object)
猜你喜欢

Pytorch学习笔记(三)模型的使用、修改、训练(CPU/GPU)及验证

白帽子揭秘:互联网千亿黑产吓退马斯克

The serialization class in unity is in JSON format

估值15亿美元的独角兽被爆裁员,又一赛道遇冷?

天翼云Web应用防火墙(边缘云版)支持检测和拦截Apache Spark shell命令注入漏洞

.net6与英雄联盟邂逅之——根据官方LCU API制作游戏助手

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

Explain four interesting NPM usages with charts

Unicorn, valued at $1.5 billion, was suddenly laid off, and another track was cold?

Add a display horizontal line between idea methods
随机推荐
【Oauth2】五、OAuth2LoginAuthenticationFilter
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
I. creation and constraint of MySQL table
大脑带来的启发:深度神经网络优化中突触整合原理介绍
7-25 0-1 backpack (50 points)
The picture moves horizontally with the phone - gyroscope. 360 degree setting conditions
二叉树的层序遍历(C语言实现)
[noip2003 popularity group] stack
Tianyi cloud web application firewall (edge cloud version) supports the detection and interception of Apache spark shell command injection vulnerabilities
Docker container MySQL enables binlog and scheduled backup
Cavans realizes Static Rolling barrage
周伟:寻找非共识性投资机会,陪伴延迟满足的创始团队
JS submit the form to determine whether the user name and password are empty
POM file details
MySQL's practice of SQL analysis and optimization from the index principle
JS download files, filesaver.js export txt and Excel files
With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development
【着色器实现Overlay重新覆盖变装效果_Shader效果第九篇】
Propagation of transactions
MySQL sets auto increment for existing primary keys