打开窗口的URL有问题
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/
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/
2015-09-23
举报