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

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

WBOY
WBOYOriginal
2016-06-24 11:24:58924browse

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

例如:

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

100秒后跳转到www.bt720p.com

Statement:
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