i want  to know too

解决方案 »

  1.   

    用 window.open 开新窗 做表单
      

  2.   

    没见过!!!
    建议采用 mrshelly(Shelly) 的Idea
      

  3.   

    main.htm
    <html>
    <head>
    <script language=javascript>
    <!--
    /*@cc_on @*/
    /*@if (@_win32 && @_jscript_version>=5)
    function window.prompt(obj,str1)
    {
        obj.value=window.showModalDialog("prompt.htm",str1,"status:no;dialogHeight:40px;dialogWidth: 300px;edge: Raised; center: Yes; help: No; resizable: no; status: No;scroll:no");
    }
    @end @*/
    //alert(confirm('sure?'));
    //window.prompt("请输入密码11:");
    // -->
    </script></head>
    <body>
    <input type="text" id="txtPwd" onclick='javascript:window.prompt(this,"请输入密码:");'>
    </body>
    </html>
    //prompt.htm
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>Untitled Document</title>
    <style type="text/css">
    body{background-color: buttonface;font-size:15px;}
    </style>
    <script language="JavaScript">
    <!--
    document.title="prompt";
    var  str  =  window.dialogArguments;
    function doCancel(){
    window.returnValue="";
    window.close();
    }
    function doSure(){
    if(txtPwd.value==""){
    alert("密码不能为空!");
    txtPwd.focus();
    return;
    }
    window.returnValue=txtPwd.value;
    window.close();
    }
    window.onblur=function (){txtPwd.focus();}
    //-->
    </script>
    </head><body>
    <script language="JavaScript">
    <!--
    document.write(str);
    //-->
    </script>
    <input type="password" id="txtPwd" style="width:100% " value="">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="right">
    <input type="button" onclick="doCancel()" value="取消">
    <input type="button" onclick="doSure()" value="确定">
    </td>
      </tr>
    </table>
    </body>
    </html>
      

  4.   

    这样做的话
    是不是 新生成了一个 request呢