Chinaunix首页 | 论坛 | 博客
  • 博客访问: 26188069
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 系统运维

2009-07-13 12:35:13

*.location.href用法:PHPChina 开源社区门户%I)A+} O&`R9F"r
  top.location.href=”url”          在顶层页面打开url(跳出)
+ju%sZ:k9Z#V x`r3l*j0  self.location.href=”url”         仅在本页面打开url地址
/CmX*Y3t0  parent.location.href=”url”   在父窗口打开Url地址
*D;Kj`f-A0`@Q-p0  this.location.href=”url”       用法和self的用法一致PHPChina 开源社区门户fi2R V.RgTt6~&@,K
      if (top.location == self.location) 判断当前location 是否为顶层来禁止frame引用
:qs6gw5pfsL0  如果页面当中有自定义的frame的话,也可以将parent self   top换为自定义frame的名称PHPChina 开源社区门户7K5K9f6G t xT
     效果就是在自定义frame窗口打开url地址
阅读(1277) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~