Javascript Event System - global-page-before-unload

From KickApps Documentation

Jump to: navigation, search

This article pertains to the Javascript Event System. You can refer to our list of Javascript Event System Supported Events to learn what else you can do with our event system.

Contents

Summary

This event is found on all pages. It is fired immediately before the page is navigated away from or when the window or tab is closed.

Payload Parameters

none

Execution Interruption

none

Example

function onGlobalBeforePageUnload() {

   // do something here

} var newEventId = Ka.events.listen('global-page-before-unload', onGlobalBeforePageUnload);