window.location.href 和 window.open 的区别
2009-08-21 15:46
337 查看
Window.location.href="http://www.longeco.com.cn/"
这是JAVASCRIPT定位到另一个地址的语句,有点像WINDOW.OPEN区别是前者不打开新页面 。
WINDOW.OPEN例子为:
window.open("http://www.longeco.com.cn/") ;
如果top信息不变,只改变中间的页面,用location.href方法。
location.href="http://www.longeco.com.cn/" ;
这是JAVASCRIPT定位到另一个地址的语句,有点像WINDOW.OPEN区别是前者不打开新页面 。
WINDOW.OPEN例子为:
window.open("http://www.longeco.com.cn/") ;
如果top信息不变,只改变中间的页面,用location.href方法。
location.href="http://www.longeco.com.cn/" ;
相关文章推荐
- javascript中window.open()与window.location.href的区别
- window.location.href和window.open的几种用法和区别
- window.location.href和window.open的几种用法和区别
- javascript中window.open()与window.location.href的区别
- window.location.href,window.open,<a href="/"></a>打开新页面区别
- javascript中window.open()与window.location.href的区别
- javascript中window.open()与window.location.href的区别
- window.location.href,window.open,<a href="/"></a>打开新页面区别
- window.open和window.location.href的区别
- javascript中window.open()与window.location.href的区别
- window.location.href()与window.open()区别
- javascript 打开页面window.location.href和window.open的区别
- window.location.href()与window.open()区别
- javascript中window.open()与window.location.href的区别
- javascript中window.open()与window.location.href的区别
- window.location与window.open()的区别 "top.location.href"是最外层的页面跳转
- window.location.href和window.open的几种用法和区别
- window.location.href和window.open的几种用法和区别
- javascript中window.open()与window.location.href的区别
- window.location.href和window.open的几种用法和区别