Do anyone have an idea about, how to register the window unload event in an ExtJS MVC application.
Ext.EventManager.on(window, 'beforeunload', function() {
alert('cross-exit tab click AND cross-exit browser click');});
The above code needs to be placed in a javascript file. I’m not sure which file should carry the above code.
The above code does the job. I placed it under my main controller.