2-7的编程练习请问为什么我这样写没有反应呢
<script type="text/javascript">
function rec()
{var mywindow=confirm(“是否打开新窗口:”);
if(mywindow=true);
{var site=prompt(“输入网址:”,“http://www.imooc.com/”);
window.open( site,"_blank","width=400,height=500,menubar=no,toolbar=no")}
else
{return null;}}
</script>