定时跳转页面

javascript如何实现定时跳转页面
JavaScript

javascript如何实现定时跳转页面

466 0

在javascript中,可以使用setTimeout()配合location对象的href属性来实现定时跳转页面功能,语法格式“setTimeout("javascript:location.href=跳转页面地址", 毫秒数);”。本教程操作环境:windows7系统、javascript1.8.5版、Dell G3电脑。javascript实现定时跳转页面123456// 五秒以后再跳转setInterval("myInterval()",5000);//1000为1秒钟function myInt