var str="selectbusinessunit.aspx?unit>
    function selectunit() {
            var unitid = $("#txtBunitid");
            var str = "WebForm1.aspx?unitid=" + unitid.value;
            var result = window.showModalDialog(str, '', 'dialogWidth=35;dialogHeight=31;resizable=no;scroll=no;status=no');
            if (result != null && result != "")//保存失败
            {
 
                var name = result.split('|')[0];
                var id = result.split('|')[1];
                $("#tb_departID").val(name);
                $("#txtBunitid").val(id);
 
            }
        }

var result= window.showModalDialog(str,'','dialogWidth=35;dialogHeight=31;resizable=no;scroll=no;status=no');

     <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <title></title> </head> <script type="text/javascript"> var returnValue = ""; function SelectProduct() { var products = document.getElementsByName("product"); for (var i = 0; i < products.length; i++) { if (products[i].checked == true) { returnValue += products[i].value; } } window.returnValue = returnValue; alert(window.returnValue); window.close(); } </script> <body> <form /> </div> </form> </body> </html>

相关文章:

  • 2021-06-02
  • 2021-08-25
  • 2021-06-19
  • 2021-10-24
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-21
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案