导航:首页 > 编程语言 > url跳转代码

url跳转代码

发布时间:2023-10-12 20:12:20

A. URL跳转的几种方式

1、:

<head><!--以下方式只是刷新不跳转到其他页面--><metahttp-equiv="refresh"content="10"><!--以下方式定时转到其他页面--><metahttp-equiv="refresh"content="5;url=hello.html"></head>

2、javascript:

①、window.location.href方式

js"><scriptlanguage="javascript"type="text/javascript">//以下方式直接跳转window.location.href='hello.html';
//以下方式定时跳转setTimeout("javascript:location.href='hello.html'",5000);
</script>

②、window.navigate方式跳转

<scriptlanguage="javascript">
window.navigate("target.aspx");</script>

③、window.loction.replace方式

<scriptlanguage="javascript">
window.location.replace("target.aspx");</script>

④、self.location方式

<scriptlanguage="JavaScript">
self.location='target.aspx';</script>

⑤、top.location方式

<scriptlanguage="javascript">
top.location='target.aspx';</script>

⑥、返回方式

<scriptlanguage="javascript">
alert("返回");
window.history.back(-1);</script>
阅读全文

与url跳转代码相关的资料

热点内容
ps3文件分割视频 浏览:280
微信图片一键转发软件 浏览:331
如何判断s200plc编程电缆 浏览:691
太原编程培训班哪个好 浏览:171
树叶吹奏教程 浏览:6
社交app带来了哪些社会问题 浏览:394
如何安装爱宝8800数据采集器 浏览:712
文件保存了怎么找不到了 浏览:476
彩票网站怎么辨真假 浏览:840
pr找不到该文件 浏览:963
java移除panel 浏览:354
jsp填充jsp 浏览:166
海关外贸大数据在哪里查 浏览:381
思特奇java笔试题 浏览:121
葫芦侠在手机中的文件名 浏览:813
plc编程应该怎么收钱 浏览:584
c语言中源文件由什么组成 浏览:890
linuxhttpdphp配置文件 浏览:607
拆单数据要怎么保存 浏览:17
mac电脑怎样压缩文件到100m 浏览:645

友情链接