我是用这种方法打开新窗口的.
function bu1(){
var newWin =window.open('');
newWin.document.write('');//写入文本框的内容
}
但是为什么一定要刷新后才可以运行呢!???????有解决的办法吗??????
function bu1(){
var newWin =window.open('');
newWin.document.write('');//写入文本框的内容
}
但是为什么一定要刷新后才可以运行呢!???????有解决的办法吗??????
要
newWin.document.write.close();
散发了啊 来个人啊!
<body>
<script type="text/javascript">
<!--
function bu1(){
var newWin =window.open('');
newWin.document.write('sdfsd');//写入文本框的内容} //-->
</script>
<input type="button" value="Click" onclick="bu1()"/>
</body>