Here i need to check a button click using javascript i.e)if button A is clicked i will call a javascript function and if button B is clicked i will call another javascript function.
if(document.getElementById('imgBTNExportPPT').clicked == true)
{
ShowDialogExportPPTPOPUP();
}
else if(document.getElementById('btnShowModal').clicked == true)
{
ShowDialogPrintPOPUP();
}
and
<asp:ImageButton ID="imgBTNExportPPT" runat="server" Width="15" Height="15" border="0"
OnClick="imgBTNExportPPT_Click" ImageUrl="~/Images/PPT_icon.png" />
<asp:ImageButton ID="btnShowModal" runat="server" Width="15" Height="15" border="0"
ImageUrl="~/Images/Print_icon.png" onclick="btnShowModal_Click" />
is it possible??any suggestion??
Try this :
HTML code should be like this :
If it’s a server side control then you can do it in two ways :
OR (in C#)
http://msdn.microsoft.com/en-us/library/7a9d6h4f(v=vs.80).aspx