dojo.windowUnloaded¶
Status: | Draft |
---|---|
Version: | 1.2.3 |
Available: | since V? |
Signal fired by impending window destruction.
Introduction¶
The dojo.windowUnloaded function is triggered on the onwindowunload browser event. This event is triggered when the user is leaving the current page.
It executes all the functions contained in an existing private array.
To add a function to this array use dojo.addOnWindowUnload.
Usage¶
1 2 3 | <script type="text/javascript">
dojo.addOnWindowUnload(function(){ alert('Bye :)'); })
</script>
|
Examples¶
Programmatic example¶
<script type="text/javascript">
dojo.addOnWindowUnload(function(){ alert('Bye'); });
dojo.addOnWindowUnload(function(){ alert('Bye again'); });
</script>
Declarative example¶
TODO: example
See also¶
- http://docs.dojocampus.org/dojo/addOnWindowUnload - method to add functions to the execution stack
- http://docs.dojocampus.org/dojo/addOnUnload - similar to addOnWindUnload but for the onbeforeunload event.