请问怎么把prompt的返回值(网址)放到window.open中
var mp=prompt('确定打开的网址:','http://www.imooc.com');
if(mp!=null)
{
window.open('http://www.imooc.com/','_blank','width=400px,height=500px,menubar=no,toolbar=no');
} 这个地方仅仅是把返回值用来判断非空,要怎么把这个返回的字符串当做是url来用呢