哪位大神帮我看看是否正确
<script type="text/javascript">
function openWindow()
{
var mymessage=confirm("确定要打开新窗口吗?")
if(mymessage==true)
{
window.open('http://www.imooc.com/','_blank','width=400px,height=500px,menubar=no,toolbar=no')
}
else
{
null
}
}
</script>