Quote:However there is no direct way. Hope this will work. Happy coding!!:) <html> <head> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script> backagain=0; close = 0; $( window ).bind( 'beforeunload' , function( event ) { setTimeout( function() {backagain++;); return '';}).bind( 'unload', function( event ) {close++;}); </script> <meta charset="utf-8"> <title>JS Bin</title> </head> <body> </body> </html> JS Bin
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)