function JS_Win(theUrl,theTitle,theWidth,theHeight) {
window.open(theUrl,theTitle,"width="+theWidth+",height="+theHeight);
}例如打开的是一个文件,窗口标题会显示成 http://192.168.0.1/Test/aaa.jpg(网址+文件名)
能否通过JS自定义该标题呢?用一个窗口内嵌文件,通过传参数是可以实现更改,不知道有没更好的办法。最好是用JS打开时自定义。
window.open(theUrl,theTitle,"width="+theWidth+",height="+theHeight);
}例如打开的是一个文件,窗口标题会显示成 http://192.168.0.1/Test/aaa.jpg(网址+文件名)
能否通过JS自定义该标题呢?用一个窗口内嵌文件,通过传参数是可以实现更改,不知道有没更好的办法。最好是用JS打开时自定义。
var win = window.open(theUrl, theTitle, "width=" + theWidth + ",height=" + theHeight);
win.document.title = theTitle;
}