Code
Execute
<!DOCTYPE html> <html> <head> <title>html tutorial - html5 - html code - html form - In 30Sec by Microsoft Award MVP - | 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>
Result