Tryit<!DOCTYPE html><html><head><title>Wikitechy onoffline attribute</title></head><body onoffline="offline()"><h2>Goto file menu and click “Work Offline”</h2><p>
Learn to Code in Wikitechy<br>
Teach people how different technologies are organized<br><b>Note:</b>onoffline only supported in Firefox and
Internet Explorer version 8 to 10.</p><script>
function offline()
{
alert ("You are working in offline.");
}
</script></body></html>
Code Explanation for onoffline Attribute in HTML:
onoffline attribute used to trigger an event when the browser starts working in offline.
offline JavaScript function used to show an alert message “You are working in offline.”
Output for onoffline Attribute in HTML:
Goto File menu in the browser and chose “Work Offline”.
The Window shows an alert message “You are working in offline.”
Browser Support for onoffline Attribute in HTML:
No
8.0-10.0
3.0
No
No
Tips and Notes
onoffline attribute only supported in Firefox and Internet Explorer version 8 to 10.