是用alert("test")吗?
如果用这种方法是不能自己定义,窗口的title的

解决方案 »

  1.   

    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <input type="button" name="Button" value="Button" onclick="popwin('zddsrr','srr')">
    <script language="JavaScript">
    function popwin(title,content)

    guagua=window.open('1.htm','guagua','scrollbars=yes,width=300,height=200');
    guagua.document.write("<TITLE>"+title+"</TITLE>");
    guagua.document.write("<BODY BGCOLOR=#ffffff>");
    guagua.document.write(content);
    guagua.document.write("</BODY>");
    guagua.document.write("</HTML>");
    guagua.document.close();

    </SCRIPT> 
    </body>
    </html>