使用JavaScript打开URL的多个方法

使用JavaScript打开URL的多个方法

使用JavaScript打开URL的多个方法:

window.open("http://www.0x32.cn","_new","height=50,width=60,top=10,left=20,resizable=yes,scrollable=yes");

var NewWin = window.open("about:blank","_new","height=50,width=60,top=10,left=20,resizable=yes,scrollable=yes");
NewWin .document.open();
NewWin .document.write("test window");
NewWin.document.close();

location.href="http://www.0x32.cn";

location.assign=("http://www.0x32.cn");

location.replace=("http://www.0x32.cn");

留下回复