”;2、借助js,在script标签中添加“window.location="跳转地址"”代码进行跳转。">
您的位置:首页 > 技术中心 > 前端框架 >

html怎么重定向跳转页面

时间:2022-02-23 17:34

跳转方法:1、用meta标签,语法“<meta http-equiv="refresh" content="时间; url=跳转地址">”;2、借助js,在script标签中添加“window.location="跳转地址"”代码进行跳转。

本教程操作环境:windows7系统、javascript1.8.5&&HTML5版、Dell G3电脑。

html重定向跳转页面的方法

1、利用meta标签

<head>
<meta http-equiv="refresh" content="5; url=https://www.gxlsystem.com/">
</head>

1.gif

2、借助js

<script type="text/javascript">
	window.location = "http://www.baidu.com";
</script>

2.gif

推荐教程:《html视频教程》

以上就是html怎么重定向跳转页面的详细内容,更多请关注gxlsystem.com其它相关文章!

本类排行

今日推荐

热门手游