Live Chat Icon For mobile
Live Chat Icon

How can you avoid postback on submit button?

Platform: ASP.NET| Category: Client Side Scripting

The postback on submit button can be avoided by giving return=false in the event handler function as below.

<INPUT  type='submit' value='Submit' onclick='return false;'>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.