Module: focus-blur

Detection of window focus

Source:

CSS classes


window-focused
window-blured

Methods


JS.Responsive.isDocumentLoaded()

Returns if document is in state that everything is loaded.

Since:
  • 3.0.0

Source:
Returns:
Type:
Boolean

JS.Responsive.isDocumentUnloading()

Returns true if user is leaving current page.

Since:
  • 3.0.0

Source:
Returns:
Type:
Boolean

JS.Responsive.isFocused()

Returns true if window is focused/active.

Since:
  • 3.0.0

Source:
Returns:
Type:
Boolean

Events


windowFocused
{Boolean} isFocused