我想访问一个JavaScript函数,但它是说它没有声明。我试图设置访问修饰符,并想知道如何在javascript中执行此操作。
下面是我试图宣布为公共的功能。
访问Javascript中的修饰符
<script language ="javascript" type ="text/javascript">
function PopupPicker(ctl, w, h) {
var PopupWindow = null;
settings = 'width=' + w + ',height=' + h + ',location=no,directories=no, menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
PopupWindow = window.open(<%= getServerName.getserverName("/Quoteman/DatePicker.aspx?Ctl=") %>);
PopupWindow.focus();
};
编辑:这是我想调用的函数。
<asp:TextBox ID="DateInTxt" runat="server" Width="80px"></asp:TextBox><asp:ImageButton
ID="ImageButton1" runat="server" BorderStyle="None" ImageUrl="~/icons/vwicn063.gif"
OnClientClick="PopupPicker('DateInTxt', 250, 250);" Width="21px" /></td>
这个脚本与你的HTML有关吗? – tymeJV
低于