window.location如何指明target?
我用的框架,不知道利用window.location跳转的时候如何指明targer,谢谢!
[解决办法]
top.framename.location.href= "xxxxx ";
[解决办法]
如果你要让最顶层的框架跳转,就是整个页面
window.top.location = "…… "
如果你要让当前页面的父框架跳转
window.parent.location = "…… "
如果你要让指定框架跳转
window.top.框架名.location = "…… ";(跟楼上说的效果一样)
[解决办法]
用window.top.location.href="....";就可以跳了
[解决办法]
top.framename.location.href= "target ";
[解决办法]
window就是target
顶部开就是top.location
指定FRAME就是指定FRAME.location
[解决办法]
target="_blank"
就用window.open....
如果不用这个属性
就用
self.location=。。。
[解决办法]
同意楼上的用window.open
[解决办法]