In HTML 5, localstorage is a good thing. In browsers that support localstorage, the input of the user form can be persisted. Even if the browser is closed and the browser is reopened next time, the value can be read. The following is The example shown is to use jquery to read the value of localstorage every time the form is loaded, and to clear the value every time the form is submitted
The first is a form :