我正在尝试从 img 标签调用 onclick 事件的函数。但它似乎根本没有调用该函数。
<div class="portlet-title" style="background-color: #2E3638;">
<h4><i class="icon-reorder"></i>Image List</h4>
<%-- <asp:ImageButton id="imagelist" ImageUrl="~/Admin1/images/refresh-6.png"
style="height:30px; width:30px; margin-left:10px; cursor:pointer;" runat="server"
OnClick="imagelist_Click" Height="26px" /> --%>
<img src="images/refresh-6.png" style="height:30px; width:30px; margin-left:10px; cursor:pointer;" onClick="Load();" />
</div>
javascript代码:
function Load() {
window.location("NewDesign.aspx");
}