Auto refresh page after Form submission

In order to refresh a page after an HTML form submission, use one of the following

  1. Use the below code In HTML form
<form onsubmit="setTimeout(function(){window.location.reload();},10);">

2.Use location.reload();(Make this call via JavaScript)

document.getElementById("frmStudent").onsubmit = function(){
    location.reload(true);
}

Leave a comment

Your email address will not be published. Required fields are marked *