html中使用meta中跳转,通过meta可以设置跳转时间和页面
<head><!--只是刷新不跳转到其他页面 --><meta http-equiv="refresh" content="5"><!--定时转到其他页面 --><meta http-equiv="refresh" content="5;url=index.html"> </head>
a标签直接跳转 点击跳转
<a href="http://www.545141.com">点击跳转</a>
通过javascript中实现跳转
// 直接跳转window.location.href='index.html';// 定时跳转setTimeout("javascript:location.href='index.html'", 5000);
其实两种方式是类似的,只是有的在javascript中写的跳转,另一种直接从html中写跳转
<button id="load" οnclick="window.location.reload('/html/index.html')">跳转</button>
html跳转上一页的方式
window.history.go(-1);或者window.history.back(-1);
在html中写
<a href=”#” onClick=”JavaScript :history.back(1);”>返回上一页</a><a href=”#” onClick=”javascript :history.Go(-1);”>返回上一页</a>
在javascript中写跳转上一页
<div id="btn">按钮</div><script type="text/javascript"> var wrong = document.getElementById('btn'); wrong.onclick = function() { window.history.go(-1);//返回上一页 window.history.back(-1);//返回上一页 }</script>
寻找最美的编程字体,编程常用的14个常用字体介绍,最清楚,显示等宽的字体
Windows server 2012 R2评估版本激活
游戏修改大师 v9.21 | 同时支持32位及64位游戏修改功能的利器
搜狗五笔输入法5.5d无广告,使用方便好用,推荐使用
2022年最好用的6个php环境搭建工具推荐
大公司的朋友圈--网易、鹰角等八家公司的游戏投资版图
网易游戏组织架构介绍
广东电源大厂被美国列入SDN名单!行业隐形冠军浮出水面
华为的质量为什么好,看华为对供应商质量管理和要求:三化一稳!
第三节 强化南沙湾区交通中心功能