window.open必须加http://吗?
function openWindow() {
var a = confirm("是否打开?");
if(a = true) {
var b = prompt("请输入打开地址","这里输入地址");
if(b != null) {
window.open(b,'_blank','width=400,height=500,menubar=no,toolbar=no');
}
}
}弹出的输入框中如果不加http://就打不开,加上就能打开了,这是怎么回事?