為什么left不起作用?
function?wopen(){ ????var?xw=confirm('是否新建窗口?'); ????if(xw==true){ ????????var?url=prompt('請輸入網址',?'http://idcbgp.cn'); ????????if(url){ ????????????window.open(url,'_blank','width=400,height=400;left=100,top=200'); ????????}else{ ????????????document.write('你沒有打開新窗口'); ????????} ????}else{ ????????document.write('你沒有打開新窗口'); ????} }
2016-05-26
自問自答,剛剛發(fā)現(xiàn)left前面不是逗號是分號。。。。