<small id='XxC5G'></small><noframes id='XxC5G'>

        • <bdo id='XxC5G'></bdo><ul id='XxC5G'></ul>
        <legend id='XxC5G'><style id='XxC5G'><dir id='XxC5G'><q id='XxC5G'></q></dir></style></legend>
      1. <i id='XxC5G'><tr id='XxC5G'><dt id='XxC5G'><q id='XxC5G'><span id='XxC5G'><b id='XxC5G'><form id='XxC5G'><ins id='XxC5G'></ins><ul id='XxC5G'></ul><sub id='XxC5G'></sub></form><legend id='XxC5G'></legend><bdo id='XxC5G'><pre id='XxC5G'><center id='XxC5G'></center></pre></bdo></b><th id='XxC5G'></th></span></q></dt></tr></i><div id='XxC5G'><tfoot id='XxC5G'></tfoot><dl id='XxC5G'><fieldset id='XxC5G'></fieldset></dl></div>

      2. <tfoot id='XxC5G'></tfoot>

        html点击按钮弹出页面获取值的实例代码

        时间:2023-09-10

        <small id='VLZM1'></small><noframes id='VLZM1'>

        • <bdo id='VLZM1'></bdo><ul id='VLZM1'></ul>
            <legend id='VLZM1'><style id='VLZM1'><dir id='VLZM1'><q id='VLZM1'></q></dir></style></legend>

            1. <tfoot id='VLZM1'></tfoot>
            2. <i id='VLZM1'><tr id='VLZM1'><dt id='VLZM1'><q id='VLZM1'><span id='VLZM1'><b id='VLZM1'><form id='VLZM1'><ins id='VLZM1'></ins><ul id='VLZM1'></ul><sub id='VLZM1'></sub></form><legend id='VLZM1'></legend><bdo id='VLZM1'><pre id='VLZM1'><center id='VLZM1'></center></pre></bdo></b><th id='VLZM1'></th></span></q></dt></tr></i><div id='VLZM1'><tfoot id='VLZM1'></tfoot><dl id='VLZM1'><fieldset id='VLZM1'></fieldset></dl></div>

                  <tbody id='VLZM1'></tbody>

                  html点击按钮弹出页面获取值的实例代码
                  代码一:
                  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                  <html xmlns="http://www.w3.org/1999/xhtml">
                  <head>
                  <title></title>
                  <script type="text/javascript">
                  function winOpen (strURL,strName,width,height){
                  theWindow = window.open (strURL,strName,"width="+width+" height="+height+" scrollbars=yes left="+(1024-width)/2+" top="+(768-height)/2);
                  if (theWindow.opener == null) theWindow.opener = window;
                  if (window.focus) theWindow.focus();
                  }
                  function save(){
                  alert(document.getElementById("tid").value);
                  alert(document.getElementById("tname").value);
                  }
                  </script>
                  </head>
                  <body>
                  <from action="xx.action" method="post">
                  <!--部门ID-->
                  <input type="hidden" name="typeid" id="tid" value="">
                  
                  请选择部门名称:<input type="text" name="v_type_name" id="tname" size="30" value=""/>
                  <input type="button" name="select" value="选择..." onClick="javaScript:winOpen('list.html','列表',600,400)">
                  
                  <input type="button" name="select" value="提交" onClick="javaScript:save()">
                  </from>
                  </body>
                  </html>
                  代码二:
                  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                  <head>
                  <title></title>
                  <script type="text/javascript">
                  function checkIt(){
                  window.opener.document.getElementById("tid").value = document.getElementById("dicId").value; //把子窗口的值,赋值给父窗口
                  window.opener.document.getElementById("tname").value = document.getElementById("dicName").value; //把子窗口的值,赋值给父窗口
                  window.close();
                  }
                  function getDicName(dicId,strDicName){
                  document.getElementById("dicId").value = dicId;
                  document.getElementById("dicName").value = strDicName;
                  }
                  </script>
                  </head>
                  <body>
                  <from action="xx.action" method="post" id="myform" name="myform">
                  <input type="hidden" name="dicId" id="dicId">
                  <input type="hidden" name="dicName" id="dicName">
                  
                  <INPUT TYPE="radio" NAME="type" onclick="getDicName('1','行政部')">行政部
                  <INPUT TYPE="radio" NAME="type" onclick="getDicName('2','人事部')">人事部
                  <INPUT TYPE="radio" NAME="type" onclick="getDicName('3','财政部')">财政部
                  <INPUT TYPE="radio" NAME="type" onclick="getDicName('4','研发部')">研发部
                  <INPUT TYPE="radio" NAME="type" onclick="getDicName('5','产品部')">产品部
                  
                  <br/>
                  <input type='button' name='create' value=" 确 认 " onClick="javascript:checkIt()">
                  <input type='button' name="cancel" onClick="javaScript:window.close()" value=" 取 消 ">
                  
                  </from>
                  </body>
                  </html>
                   
                  上一篇:Layui-open 打开一个新页面的实例代码 下一篇:没有了

                  相关文章

                • <i id='cYpZx'><tr id='cYpZx'><dt id='cYpZx'><q id='cYpZx'><span id='cYpZx'><b id='cYpZx'><form id='cYpZx'><ins id='cYpZx'></ins><ul id='cYpZx'></ul><sub id='cYpZx'></sub></form><legend id='cYpZx'></legend><bdo id='cYpZx'><pre id='cYpZx'><center id='cYpZx'></center></pre></bdo></b><th id='cYpZx'></th></span></q></dt></tr></i><div id='cYpZx'><tfoot id='cYpZx'></tfoot><dl id='cYpZx'><fieldset id='cYpZx'></fieldset></dl></div>
                    <bdo id='cYpZx'></bdo><ul id='cYpZx'></ul>
                  <tfoot id='cYpZx'></tfoot>
                • <small id='cYpZx'></small><noframes id='cYpZx'>

                    <legend id='cYpZx'><style id='cYpZx'><dir id='cYpZx'><q id='cYpZx'></q></dir></style></legend>