Skip to content
Advertisement

Website Refreshes After Clicking Button JavaScript [closed]

When Clicking A specific Button, (Submit) the page Refreshes, I really don’t want It to refresh, What can I do?

Advertisement

Answer

@someone It’s always advisable to add proper description on your question with relevant code snippet or some demo. It gives better understanding to answer other question.

As far I understand with your question you may try below solution if you are still looking for solution:

  1. As suggested in previous answer, remove action attribute if it’s not in use.
  2. Make input type button instead submit
  3. use javascript.void() in action attribute.

If you query yet not resolved with above solution then request you to please provide some information. Thanks!

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement