1 function my_event(e) {2 alert(e.type);3 };4 5 6 7 window.addEventListener('abort', my_event, true);8 window.addEventListener('beforeunload', my_event, true);9 window.addEventListener('close', my_event, true);10 window.addEventListener('unload', my_event, true);11
Este ShareCode tiene versiones:
- Window events See sequence of events whe... (24/04/2013)
- Window events See sequence of events whe... (24/04/2013)
- Window events See sequence of events whe... (24/04/2013)
- Window events See sequence of events whe... (24/04/2013)
Enlace
El enlace para compartir es: