url=prompt("输入打开网址","http//www.imooc.com/"); alert(url) window.open(url,'_blank','width=400,height=600');
alert窗口显示url是http//www.imooc.com/但是新窗口中打开的网址是“http://www.imooc.com/code/http//www.imooc.com/”,擅自添加了http://www.imooc.com/code/
http后面没有冒号