无论是确定还是取消网页都会打开,怎么解决?
function openWindow()
{
var message=confirm("是否打开该网页?")
if(message=true)
{
varmywin=window.open("http://www.imooc.com/","_blank","width=400,hieght=500,menubar=0,toolbar=0");
}
else
{
mywin.close()
}
}
function openWindow()
{
var message=confirm("是否打开该网页?")
if(message=true)
{
varmywin=window.open("http://www.imooc.com/","_blank","width=400,hieght=500,menubar=0,toolbar=0");
}
else
{
mywin.close()
}
}
2015-04-01
举报