I'm unable to make use of setTimeout() function in XUL 7.0, it is not working.
while closing XUL window, i have created one event listener as like below.
window.addEventListener("close",function(event) {
try
{
setTimeout(function() { alert("bip"); }, 2000);
}
catch(e)
{
//alert(e.message);
}
},false);
But the alert is not coming.
Any help will be highly appreciated!