相对于window.open,window.location不会使用新窗口打开,而是改变当前链接,不会因此被浏览器禁用。
window.location.href="http://www.360doc.com/content/11/0308/19/4618624_99320316.shtml"
直接打开。
location.href("one.php")
在当前路径下,打开路径下的文件。