当前位置: 代码迷 >> JavaScript >> 问个简单的关于window.location.href 的有关问题()
  详细解决方案

问个简单的关于window.location.href 的有关问题()

热度:70   发布时间:2012-03-15 11:50:39.0
问个简单的关于window.location.href 的问题(在线等)

我有三个框架   a,b   ,c  

在c框架里有个button   点击button的时候弹出新页面  

但是如果用window.location.href= 'new.html '   是在c框架内转向新页面

我想要   href的   target= "_top "   那种效果,

就是另外   再弹出新页面   怎么做??  

求高人解惑!~!

不知我说明白了没


------解决方案--------------------
不太明白,是说整个框架的地址转移吗?
top.window.location.href= "*.htm "
------解决方案--------------------
onclick= "window.open( '网址 '); "
  相关解决方案