I have a Javascript function
show()
{
alert("hello");
}
which runs on ASP Button OnClick Event.
When I click the button of alert message box showing "hello", postback occurs. Is there any way I cant prevent this postback?
Try:
return false;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With