hi guys,
is their any way i can control javascript on button click event.
like i have
now everytime i click savebutton , javascript fires and i get a message " are you sure". now what i want is this javascript to fire on some condition
if condition is met i gets this message else savebutton does it saving without poping up this message.
is their any way i can control javascript on button click event.
like i have
Code:
<asp:Button ID="Savebutton" runat="server" OnClick="Savebutton_Click" OnClientClick="return confirm('Are you sure?');" />
if condition is met i gets this message else savebutton does it saving without poping up this message.
Comment