Hello Ashok,
You can use code similar to one shown below.
$(document.ready(function() {
$(window).bind('beforeunload', function() {
$.ajax({
url: "logout.aspx",
});
});
});
Please note that this snippet makes use of JQuery so your page needs to have a reference to JQuery library.
Regards,