An offline example form

You've loaded the page, congratulations! This is a demonstration of an offline form using localStorage for data, and a serviceworker and Cache Storage for the page files.

Expected behavior: The page changes to indicate you are working in offline mode, and the page loads with the entered data in the fields.

The exception is the credit card field. This is to note that localStorage is suseptible to cross site scripting, and should never be used to store sensitive data.