当前位置:网站首页>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)
边栏推荐
- WPS凭什么拒绝广告?
- Multithreaded completable future usage
- 大小端模式
- (Reprint) creation methods of various points in ArcGIS Engine
- 带你熟悉云网络的“电话簿”:DNS
- How to write the introduction of GIS method journals and papers?
- Code cloud, which officially supports the pages function, can deploy static pages
- Pass parameters to the routing component
- DP sword finger offer II 100. sum of minimum paths in triangle
- [shaders realize overlay to re cover cross dressing effect _shader effect Chapter 9]
猜你喜欢

最新战报:十项认证,五项最佳实践

Frisbee, 2022 "black red" top stream

JS get the current time, time and timestamp conversion

redis学习笔记

Algorithm -- continuous sequence (kotlin)

Re bet overseas: Alibaba, jd.com and SF again fight for "internal power"

Docker integrates the redis sentinel mode (one master, two slave and three sentinels)

Docker container MySQL enables binlog and scheduled backup

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

Multi objective optimization series 1 --- explanation of non dominated sorting function of NSGA2
随机推荐
Latest battle report: Ten certifications and five best practices
See you tomorrow at the industrial session of cloud intelligence technology forum!
搞懂MySQL的数据类型中长度含义
How to quickly design a set of cross end components that support rendering rich text content
Technology sharing | gtid that needs to be configured carefully_ mode
万字长文,浅谈企业数字化建模蓝图
Book download | introduction to lifelong supervised learning in 2022, CO authored by meta AI, CMU and other scholars, 171 Pages pdf
Ten thousand words long article, talking about the blueprint of enterprise digital modeling
基址寻址和变址寻址区别
2022年,我们只用一个月就“送走”了这么多互联网产品
Pytorch学习笔记(三)模型的使用、修改、训练(CPU/GPU)及验证
The serialization class in unity is in JSON format
Team research and development from ants' foraging process (Reprint)
(Reprint) creation methods of various points in ArcGIS Engine
Codeforces round 810 (Div. 2) [competition record]
JS page turning, kkpager.js page turning
Tianyi cloud web application firewall (edge cloud version) supports the detection and interception of Apache spark shell command injection vulnerabilities
I. creation and constraint of MySQL table
Intercept the coordinate points (four point coordinates of the face frame) face image from the marked XML file and save it in the specified folder
Algorithm -- continuous sequence (kotlin)