Home > Web Front-end > HTML Tutorial > javascript实现网页定时跳转代码_html/css_WEB-ITnose

javascript实现网页定时跳转代码_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:24:58
Original
959 people have browsed it

setTimeout(function() {
window.location.href='你要跳转到的页面的地址';
}, 时间以秒为单位);

例如:

setTimeout(function() {
window.location.href='http://www.bt720p.com';
}, 100);

100秒后跳转到www.bt720p.com

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template