Learn html - html tutorial - onoffline attribute in html - html examples - html programs
- The onoffline attribute triggers when the browser starts work offline.
Syntax for onoffline attribute in HTML:
Difference between HTML 4.01 and HTML 5 for onoffline Attribute:
HTML 4.01
- HTML 4 does not support onoffline attribute.
HTML 5
- HTML 5 supports onoffline attribute.
Applies To:
Element |
Attribute |
<body> |
onoffline |
onoffline Attribute Value:
Value |
Description |
script |
The script to be run on onoffline |
Sample Coding for onoffline Attribute in 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:
Tips and Notes
- onoffline attribute only supported in Firefox and Internet Explorer version 8 to 10.
Related Searches to onoffline attribute in html
chrome online offline events
navigator.online not working
javascript online event
offline event marketing
window addeventlistener online
jquery online event
window offline event
offline.js example
html tutorialshtml editor html code html form html tutorial html color html color codes html table html img html5 html code for website html and css html programs html website free html editor html5 tutorial wysiwyg html editor html tutorial pdf html converter php tutorial html example html tutorial css tutorial html css html tags html basics code html html online html mailto html lang html tags list