<form onsubmit="setTimeout('refresh()',500);this.submit()" action = "jcxxtbEnter.jsp" target = "_blank">

解决方案 »

  1.   

    <form action = "jcxxtbEnter.jsp" target = "_blank" onsubmit='
    window.open("jcxxtbEnter.jsp?aaa=1&bbb=2***");return false;'>在jcxxtbEnter.jsp里面
    window.opener.document.form1.text1.value="aaaaaa";
      

  2.   

    <form action = "jcxxtbEnter.jsp" target = "newpage" onsubmit="window.open('','newpage')">than you can use window.opener
      

  3.   

    用opener怎么让源页自己执行其javascript函数呢
      

  4.   

    不能执行另外一个页面上的javascript函数,但是你可以通过window.opener来控制其所有的元素,你可以把源页上的函数修改一下,放到打开的页面上来执行
      

  5.   

    我在a.html里用
    <form action = "jcxxtbEnter.jsp" target = "_blank">
    同事a.html里还有个javascript函数refresh()
    提交后谈出一个新页,我如何在新页里令a.html执行它自己的refresh(),
    没办法吗?
      

  6.   

    在a.html里面window.open("jcxxtbEnter.jsp");在jcxxtbEnter.jsp里面
    window.opener.location.reload();但是你是没有办法在一个页面里执行另外一个页面的javascript函数的!
      

  7.   

    我试了,可以test.html<html>
    <title>test</title>
    <head>
    </head>
    <script language="JavaScript">
    function aaa() {
        document.write("aaa");
    }
    </script>
    <body onLoad="javascript:window.open('test2.htm')">
    </body>
    </html>test2.htm<html>
    <head>
    <title>test2</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body>
    <a href=# onClick="javascript:window.opener.aaa()">aaa</a>
    </body>
    </html>