在框架中的页面如何进行跳转
2016-01-20 15:59
148 查看
if(top.location!=self.location){
alert("在框架中");
self.location.href=$("#indexPage").attr("href");
//说明你的页面在if框架中显示
}else{
//说明你的页面不是在if框架中显示
alert("不在框架中");
}
alert("在框架中");
self.location.href=$("#indexPage").attr("href");
//说明你的页面在if框架中显示
}else{
//说明你的页面不是在if框架中显示
alert("不在框架中");
}
相关文章推荐
- 论文查重方法
- How to: Write Object Data to an XML File
- 记录一次Quartz2D学习(七)
- TextWriter记录日志
- UrlRewrite重写url
- 高德地图的使用心得
- c# 模拟提交带文件上传的表单
- MyEclipse打不开jsp文件 报错“Failed to create the part's controls"
- 手写PHP AJAX数据脚本
- Centos6.5 设置nfs
- MyEclipse打不开jsp文件 报错“Failed to create the part's controls"
- SpringMVC 异常统一处理
- 线程的相关知识、JAVA实现死锁、生产者消费者问题
- 设置eclipse默认打开文件方式
- Python变量类型
- Hibernate事务与并发处理
- Android 事件分发机制 理解杂谈
- javascript模块化:立即执行函数(function(){…})()
- 机器人的舞蹈(hdu 2232)
- 日期格式正则:日期正则及日期加时间的正则