<input type=text name=ID onclick="window.onload()">

解决方案 »

  1.   

    你不如对网页加载事件来个重载:
    <script language=javascript>
    function window.onload()
    {
    var returnValue = window.showModalDialog('MT1.asp',123,"dialogwidth:420px;dialogheight:280px;help:0;center:yes;resizable:0;status:0;scroll:0");if (returnValue && returnValue!="")
        window.document.form.ID.value=returnValue
    }
    </script>
      

  2.   

    My GOD!
    <SCRIPT LANGUAGE="JScript" >
    function actionthisstupidroutine()
    {
    var returnValue = window.showModalDialog('MT1.asp',123,"dialogwidth:420px;dialogheight:280px;help:0;center:yes;resizable:0;status:0;scroll:0");if (returnValue!="")
    window.document.form.ID.value=returnValue
    }
    </SCRIPT>
    <body>
    <form action="" name=form>
    <input type=text name=ID>
    <input type=button name=do value="Action" onclick="return actionthisstupidroutine()">
    </form>
    </body>
    </html>
      

  3.   

    wsj(骆驼) 谢谢你啊!可以给我你的QQ吗?谢谢~!!!楼上楼下马上算分!!!