I’m not exactly sure how this works. I am just going to say magic and go with it. If you have any forms on your site, you user might find themselves leaving and then coming back our pressing a button by mistake. All of their data would be gone at that point.
No problem with just this little piece of code in your header and the right classes on your input fields. What am I speaking of?
Take a look for yourself.