The following function is working in Chrome and Internet Explorer but not in Mozilla Firefox, why is that ?
JavaScript
$(window).bind('beforeunload', function ()
{
if (document.getElementById('flg').value != 'ServiceSucceeded')
{
document.getElementById('flg').value = '1';
noBack();
} });

Answers
Know the answer? Post it. Somebody with the same question will find it here.