真爱无限的知识驿站

学习积累技术经验,提升自身能力

网页中js弹出模式窗口并传值的问题

js代码:

    <script type="text/javascript">  

        //父窗体中打开模式窗口  

        function SelectClient(ctlName) {  

            var arr = showModalDialog('ClientList.aspx?TypeSelect=ClientType_qy&ClientOwner=' +154 + '&DefaultValue=' + document.getElementById(ctlName).value, '',   

'dialogWidth:600px; dialogHeight:450px; help: no; scroll: yes; status: no');  

            if (arr != null) {  

                document.getElementById(ctlName).value = arr;  

            }  

        }  

        //子窗口返回值给父窗口的变量 ClientList.aspx中   

        <a onclick="javascript:window.returnValue='<%# Eval("ClientName")%>';window.close();"">  

    </script>



发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Powered By Z-BlogPHP 1.7.3

Copyright 2024-2027 pukuimin Rights Reserved.
粤ICP备17100155号