Mayur  Gujrathi

Mayur Gujrathi

  • 462
  • 4.1k
  • 834.6k

beforeunload function is not working in firefox

Jun 5 2014 6:48 AM

The following function is working in Chrome and Internet Explorer but not in Mozilla Firefox, why is that ?

$(window).bind('beforeunload', function () 
{
if (document.getElementById('flg').value != 'ServiceSucceeded')
{
document
.getElementById('flg').value = '1';
noBack
();
} });