window.open()与window.location.href的区别window.open("index.html",'top'); 只是表示打开这个页面,并不是打开并刷新index.htmlwindow.location.href="index.html"; 表示重新定向到新页面,同时刷新打开的这个
【阅读全文】2018/4/6  标签:Windowlocation
 如何用js得到当前页面的url信息方法(JS获取当前页面的URL) 1,设置或获取对象指定的文件名或路径。 alert(window.location.pathname) 2,设置或获取整个 URL 为字符串。 alert(window.location.href); 3,设置或获取与 URL 关
1, 最基本的弹出窗口代码   window.open('page.html'); 2, 经过设置后的弹出窗口   window.open('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=
【阅读全文】2017/2/21  标签:openjsWindow
订阅空间