Javascript 5 Lines Code to Reset Set Form Values

Simple Function clearPreviousValues() to Reset all Form Field Values to Default if the Person is Returning to the Web Page from Cache, ie Browser Back or Forward Button so values DONT Get Saved

Home Short:

The only limitation with the code below is that a web browsers caching behavior make the method below not 100% reliable ...

An even better way is to use the sessionStorage object of javascript which only persists until the person leaves the page, no matter what the web browsers caching policy.

S
H
A
R
E