HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

onvisibilitychange

Description

The onvisibilitychange of Document for JS fires at the Document object when the page becomes visible or hidden to the user.

Syntax

document.onvisibilitychange = callback

Examples

1 · on

2 · addEventListener