Do Something With A Form Before Submitting It
Introduction
I'm working on a personal browser extension that stores some values in localStorage while you're working with it1. I want the data to clear when you hit the submit button. This is how I'm doing it.
HTML
waiting...
Output
waiting...
JavaScript
const formEl = document.;
formEl.
-- end of line --
References
Footnotes
The extension uses popover and I save the data so that if I accidentally hit Escape I don't lose what I was working on.