onclick="openw(par)"
function openw(e)
{
var par=e;
window.open('xx.htm?aa='+par,'scrollbars=yes,width='+x+',height='+y+')
}

解决方案 »

  1.   

    sorry 改一些
    onclick="openw(par)"
    function openw(e)
    {
    var par=e;
    window.open('xx.htm?aa='+par,'scrollbars=yes,width='+x+',height='+y)
    }
      

  2.   

    我够笨,怎么用呀?:(
    我的代码
    <form name=listaa method=post action="look.php">
    <input type=text name=tt value="">
    <input type=submit  name=submit  value="提交">
    </form> 
      

  3.   

    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <script language="javascript">
    function windowopen(){
    document.all.form1.submit;
    newwindow=window.open("","target","scrollbars")
    if (document.all){
    newwindow.moveTo(0,0)
    newwindow.resizeTo((screen.width-300),(screen.height-300))
    }
    }
    </script>
    <form name="form1" method="post" action='look.php' onsubmit='windowopen()' 
    target=target>
    <input type="text" name="aa">
    <input type='submit'>
    </form>
    </body>
    </html>