用window.open就行啦。
nw=window.open("yourPage.htm");
nw.document.form1.textfield1.value=……

解决方案 »

  1.   

    <input type=button value="open" onclick="window.open('calendar.htm')">
      

  2.   

    文本框是在原来的窗口吗?
    我写的加入如下
    opener.document.form1.txt1.value="**"//你的日期值
      

  3.   

    搞半天,我还是没搞懂,我贴出代码吧,反正也简单
    <html>
    <head>
    </head>
    <body>
    <form name="this" method="post" action="Untitled-2.htm">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
            <input type="text" name="startCreatedate" width="90" size="10" readonly>
            <button style="FONT-SIZE:7pt; LEFT: -19px; WIDTH: 18px; POSITION: RELATIVE; TOP:-1px;HEIGHT:16px; TEXT-ALIGN: CENTER" onclick="window.open('calendar.htm')" >v</button>                           
                              <input type="text" name="endCreatedate" width="90" size="10" readonly >
                              <button style="FONT-SIZE:7pt; LEFT: -19px; WIDTH: 18px; POSITION: RELATIVE; TOP:-1px;HEIGHT:16px; TEXT-ALIGN: CENTER" onclick="window.open('calendar.htm')">v</button> 
          </td>
        <td>&nbsp;</td>
      </tr>
    </table>
    </form>
    </body>
    </html>