HTML ononline Attribute

❮ HTML Attributes


<body ononline="onFunction()" onoffline="offFunction()">


The ononline attribute fires when the user agent goes back online.

Found only on the <body> element.

Standard Syntax

<element ononline="script">

Browser Support


Applies to:

The ononline attribute can be used on the following element:

Element Attribute
<body> ononline

Attribute Values

Value Description
script Specifies the script to be run on ononline.
❮ HTML Attributes