The onoffline event attribute works when the browser work in offline mode. It is supported by <body> tag only. It is an opposite of ononline event attribute.
<element onoffline = "script">
Attribute Value: The script event is run when onoffline attribute is called.
Supported Browsers: The browser supported by onoofline event attribute are listed below:
- Firefox 3.0
- Internet Explorer 8.0