An undoable reset

A problem with the Reset button is that it’s not undoable.

One way to fix this is to replace it with a “Reset”-link that points back to the page with the form: <a href=“myself.html?randomnumber”> (where “randomnumber” is a random number). This way the back-button in the browser will work as a undo for the reset.

The reset-link can be made to look like a button, using stylesheets.

This trick has not been tested on any large number of browsers, so don’t trust it yet. Please let me know if you find a browser where it does not work.

comments powered by Disqus