我想訪問一個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
低於