javascript - 表单弹出功能未定义
问题描述
我正在尝试使用函数“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”
请帮助我解决问题。
谢谢
解决方案
推荐阅读
- ruby-on-rails - 使用 STI,临时子类的第一次读取失败,但后续读取工作
- python - (1) 处的外部函数“f”在带有 f2py 的子程序中没有隐式类型
- mysql - MySQL - 使用子查询优化查询
- android - 在 Android Studio 中获取红色类且没有语法错误
- java - 使用两个 JList 将字母转换为字母位置
- swift - Swift 闭包导致强大的 self 循环
- sql - 基于星期几返回计数或空值的 Netezza SQL 语句
- c# - 从 USB 摄像头输入和旋转图像位图后 C# 内存泄漏
- reactjs - 不同组件中的 React Router
- python - 检查 if 语句中使用的变量是否存在