I was developing HTML that accessed a JSON file. When, out of nowhere, the internet dropped from my house and I ended up thinking about it:
- Is there a way to get a connection error and warn the user of this error?
For example, if I give an error, type ERR_CONNECTION_TIMED_OUT
, how would I send a alert
warning the user who gave time-out on the connection?