wwWebImageButton::OnClientClick

Allows attaching of a client side JavaScript click handler that fires when the link is clicked. Use return false; to force the click to prevent navigation:

<ww:wwWebImageButton ID="lnkPunchIn" runat="server"                                      
     ImageUrl="images/Punchin.gif"
     NavigateUrl="punchin.tt"
     Text="Punch In" CssClass="hoverbutton"   
     OnClientClick="alert('hello'); return false;"                                   
     />
o.OnClientClick

See also:

Class wwWebButton

© West Wind Technologies, 1996-2024 • Updated: 02/03/08
Comment or report problem with topic