当前位置:网站首页>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)
边栏推荐
- 官宣!艾德韦宣集团与百度希壤达成深度共创合作
- Polymorphic case - making drinks
- gdb常用命令
- In 2022, we "sent away" so many Internet products in only one month
- 多态案例-制作饮品
- 上一次听到易趣,还是上一次
- Native JS get transform value x y z and rotate rotation angle
- Time complexity and space complexity
- The difference between V-model and.Sync modifier
- How to realize the reality of temporary graphic elements
猜你喜欢

MySql的DDL和DML和DQL的基本语法
![[collection of topics that C language learners must know 1] consolidate the foundation and steadily improve](/img/95/bec94176cadfac112585df259156c9.png)
[collection of topics that C language learners must know 1] consolidate the foundation and steadily improve

Solve the problem that the remote host cannot connect to the MySQL database

聚力打造四个“高地”,携手合作伙伴共铸国云!

多态案例-制作饮品

【黑马早报】字节旗下多款APP下架;三只松鼠脱氧剂泄露致孕妇误食;CBA公司向B站索赔4.06亿;马斯克否认与谷歌创始人妻子有婚外情...

飞盘,2022年“黑红”顶流
![[oauth2] VIII. Configuration logic of oauth2 login -oauth2loginconfigurer and oauth2clientconfigurer](/img/7e/4f652c4d3d72ad563ddbc1c1f1f50b.png)
[oauth2] VIII. Configuration logic of oauth2 login -oauth2loginconfigurer and oauth2clientconfigurer

MySQL's practice of SQL analysis and optimization from the index principle

Multi objective optimization series 1 --- explanation of non dominated sorting function of NSGA2
随机推荐
【Oauth2】五、OAuth2LoginAuthenticationFilter
大小端模式
JS, e.pagex, pagey modal box drag
Time complexity analysis of bubble sorting
In 2022, we "sent away" so many Internet products in only one month
Click El dropdown item/@click.native
数据泄漏、删除事件频发,企业应如何构建安全防线?
[noip2003 popularity group] stack
Tdsql-c serverless: help start-ups achieve cost reduction and efficiency increase
Polymorphic case - making drinks
天翼云Web应用防火墙(边缘云版)支持检测和拦截Apache Spark shell命令注入漏洞
The last time I heard about eBay, or the last time
Synchronization mechanism of go (sync.mutex)
向路由组件传递参数
2022-07-26 Daily: the first anniversary of the establishment of alphafold DB database, research on the lighting point of official promotion
.NET WebAPI 使用 GroupName 对 Controller 分组呈现 Swagger UI
Control the probability of random winning [C | random]
7-25 0-1 backpack (50 points)
从标注好的xml文件中截取坐标点(人脸框四个点坐标)人脸图像并保存在指定文件夹
How to write the introduction of GIS method journals and papers?