META 和 JS自动跳转页面

1.利用<META标签实现web页面的跳转:

<meta http-equiv="refresh" content="X; url=* .* ">

X是刷新的时间,单位是秒。  *.*是你要刷新的文件。

 2,.JS方法跳转页面:

<script type = "text/javascript">

setTimeout('location= "http:/IP地址:8080/路径/*.*"',6000)

</script>

         6000是设置的跳转间隔,单位为毫秒。

猜你喜欢

转载自www.cnblogs.com/z45-1/p/9978857.html