Hi, I capture onBeforeUnload semi-event on my application to warning the user to prevent data loss.
window.onbeforeunload = function() {
if (myModifiedData())
{
return “Data will lost. Are you sure?”;
}
when I press a button that add a row in a dhtmlXGrid
myGrid.addRow(recuperaUniqueID(‘nou-’), ‘—’’);
the onBeforeUnload event is tiggered in IE 7, in Firefox run as expected.
Any suggestion?
Kind Regards
�lex Corretg�