function sdPrint()
{
var pwin=window.open("","_blank","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width="+width+",height="+height+",left=0,top=0");
var t=document.frmedit.txtmsg.value;
pwin.document.writeln('<h3>'+t+'</h3>');
}

解决方案 »

  1.   

    var width=screen.width-10
    var height=screen.height-60忘了放上这一句了,用于设置打开窗口的大小
      

  2.   

    TSD(因为有你而精彩) 你好:现在还有这个问题,就是当我打开那个浏览页面然后再关闭后,原先父窗口中输入的所有的东西都没有了,这个怎么解决啊?
      

  3.   

    TSD(因为有你而精彩) 你好,我现在是在.NET里做的,我的代码都是模板生成的,文本框的名字都是这种格式的 name="News.content",请问有什么方法解决吗?再次非常感谢你