在js中设置页面跳转
来源:互联网 发布:jenkins 本机部署php 编辑:程序博客网 时间:2024/06/05 04:29
在javascript中设置跳转到指定的页面(other.html)的方法:
方法一:
<script language="javascript" type="text/javascript">
window.location.href = "other.html";
或者 window.location.assign("other.html");
</script>
其中window.location对象用于获取当前页面的地址(URL),并把浏览器重定向到新的页面,
location.href 属性返回当前页面的URL,
location.assign()方法是加载新的文档。
方法二:
<script language="javascript" type="text/javascript">
top.location="other.html";
</script>
方法三:
<script language="javascript" type="text/javascript">
self.location="other.html";
</script>
2 0
- 在js中设置页面跳转
- 在js中实现页面跳转
- js中页面跳转
- JS中页面跳转
- js中跳转页面
- asp.net 在iframe 中页面跳转问题 js
- JS页面跳转+JS在Iframe页面跳转、刷新
- html 中js 跳转页面
- js中页面跳转问题
- JS中实现页面跳转
- Android 在应用中,跳转到该应用的详细设置页面,设置权限页面
- js设置页面定时刷新及页面跳转
- JS中页面跳转--带框架
- JS中添加链接跳转页面
- js代码中实现页面跳转
- js 中实现页面跳转的方法
- js中跳转页面的方法
- 在asp.net中通过设置特定大小的热点实现页面跳转
- 货板条码打印项目-小记<1>
- ElasticSearch中设置排序Java
- [Elasticsearch] 控制相关度 (五) - function_score查询及field_value_factor,boost_mode,max_
- VisualVM工具介绍
- [Elasticsearch] 控制相关度 (一) - 相关度分值计算背后的理论
- 在js中设置页面跳转
- 或许被我们遗忘的JAVA Math类
- 2016年c#实验3.3:录入学号和姓名
- js中replace的用法
- Touch事件分发机制详解
- es 字段加权重
- Interceptor 拦截器 与 <mvc:annotation-driven />的冲突
- 并行类加载——让tomcat玩转双十一
- 日志系统之Flume采集加morphline解析