You can use local storage for your form, during the input you can use oninput method to store forms values, and as you refresh your page fetch this data back to your form fields
It sounds like you are talking about making js changes in chrome dev tools and persisting them? If so...
inspect the page you are working with
Click on the sources tab
Near the top left there is an "Overrides" sub-tab. Click that and then check 'enable local overrides'
Now if you edit the file in the pane to the right by adding in your js or html and cmd+s to save, it will save a local copy of the file and use this on page refreshes until you uncheck the 'enable local overrides' box