首页 > 解决方案 > 表单弹出功能未定义

问题描述

我正在尝试使用函数“ShowPopupPanel01”打开一个弹出窗口。下面是写好的函数:

 function ShowPopupPanel01() {

        debugger;
        var left = 0;// (screen.width / 2) - (330 / 2);
        var top = 0;// (screen.height / 2) - (570 / 2);
       popup =  window.open("RearPanelGeo.aspx?","Popup", 'toolbar=no,fullscreen=yes, location=no, directories=no, status=no, menubar=no,titlebar=no, scrollbars=yes, resizable=yes, copyhistory=no,width='+screen.width+',height='+screen.height+', top=' + top + ', left=' + left);
        popup.focus();
    }

这是单击“RearPanelGeo”表单应该弹出的按钮:

 <asp:Button ID="Button1" runat="server" Text="?" OnClientClick="ShowPopupPanel01"  />

但是,单击“Button1”后,网页出现以下错误。该错误表示未定义功能“ShowPopupPanel01”

请帮助我解决问题。

谢谢

标签: javascriptasp.netfunctionpopup

解决方案


推荐阅读