我是用这种方法打开新窗口的.
function bu1(){
  var newWin =window.open('');
  newWin.document.write('');//写入文本框的内容
}
但是为什么一定要刷新后才可以运行呢!???????有解决的办法吗??????