function openwindow()
    {
          
         var a=confirm("是否打开新窗口?");
        if(a==true)
        {
         var b=prompt("请输入您要打开的网址","http://www.imooc.com/");
          wondow.open(b,'_blank','width=400px,height=500px,menubar=no,toolbar=no')
        }
        else
        {
           null; 
        }
    }你没有调用方法,是不能直接运行的
"http://www.imooc.com/")   你这个链接是复制的吧  这个冒号修改为英文冒号试一下  还有就是window的单词错了 
少了判断
第5行 改为if(a)就可以了 不用true
window.open(b,'_blank','width=400px,height=500px,menubar=no,toolbar=no')试试