可能重复: JavaScript中的window.location和document.location有什么区别?
在JavaScript中,双方window并document拥有location财产,并通过两个设定不同的URL,浏览器加载新的URL.
window
document
location
他们之间有什么区别?
javascript browser dom document window
命令:
document.location.href="www.google.com"
不会更改Google Chrome浏览器中的当前网页.该命令确实在IE9浏览器中传输页面.
为什么这个命令适用于IE9而不适用于chrome?
javascript location google-chrome href internet-explorer-9
javascript ×2
browser ×1
document ×1
dom ×1
google-chrome ×1
href ×1
internet-explorer-9 ×1
location ×1
window ×1