Advertisement
Home Open Editor ❯

HTML ononline event Attribute

Example

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

Try this code ❯

Meaning

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

Found only on the <body> element.


Standard Syntax

<element ononline="script">


Advertisement

Attribute Values

Value Description
script Specifies the script to be run on ononline.

Technical Details

Supported HTML elements:

<body>
Home Open Editor ❯
Advertisement