Javascript: OnUnload or OnBeforeUnload

Put the following code(onunload or onbeforeunload):

window.onunload = function () {
    setTimeout("document.getElementById('waiting-overlay').innerHTML=''", 10);
}

Leave a Reply