Can you redirect a webviewer when offline to go to a html file instead?

We are trying to find out if it’s possible to link to an online webviewer, then have it redirect to an uploaded html file instead if offline?

Also, if those pages that are used for offline, if they are updated, do they automatically update in the app, or does a new version of the app have to be uploaded?

yes, with the correct logic in place you can do this. check for internet, if present go to the web, if not go to the stored html file.

and no, you would need to upload a new app. well maybe. if your entire website is powerd by javascript, you could do anything!

Thank you so much, Jared! Are there any links or pages that have the information for this type of logic?