<script language="JavaScript">
var whatsNew = open('','_blank','top=50,left=50,width=200,height=300,' +
'menubar=no,toolbar=no,directories=no,location=no,' +
'status=no,resizable=no,scrollbars=yes');
whatsNew.document.write('<center><b>HOHO</b></center>');
whatsNew.document.write('<p>哈哈');
whatsNew.document.write('<p>TEST');
whatsNew.document.write('<p align="right">' +
'<a href="javascript:self.close()">关闭窗口</a>');
whatsNew.document.close();</script>哈哈后面要要引号关闭
var whatsNew = open('','_blank','top=50,left=50,width=200,height=300,' +
'menubar=no,toolbar=no,directories=no,location=no,' +
'status=no,resizable=no,scrollbars=yes');
whatsNew.document.write('<center><b>HOHO</b></center>');
whatsNew.document.write('<p>哈哈');
whatsNew.document.write('<p>TEST');
whatsNew.document.write('<p align="right">' +
'<a href="javascript:self.close()">关闭窗口</a>');
whatsNew.document.close();</script>哈哈后面要要引号关闭
var whatsNew = window.open('','_blank','top=50,left=50,width=200,height=300,' +
'menubar=no,toolbar=no,directories=no,location=no,' +
'status=no,resizable=no,scrollbars=yes');
whatsNew.document.write('<center><b>HOHO</b></center>');
whatsNew.document.write('<p>哈哈');
whatsNew.document.write('<p>TEST');
whatsNew.document.write('<p align="right">' +
'<a href="javascript:self.close()">关闭窗口</a>');
whatsNew.document.close();</script>
做不到
50,width=200,height=300,' +
'menubar=no,toolbar=no,directories=no,location=no,' +
'status=no,resizable=no,scrollbars=yes');
通过名字来调用子窗口,
如:WIN1.DOCUMENT.ALL("")
WIN1为子窗口听名字.