Hi,
Please refer below code its wroking fine with I.E, Mozila Firefox and chrome..
<script type="text/javascript" >
window.onbeforeunload = function () {
return "Do you want to leave?"
}
// A jQuery event (I think), which is triggered after "onbeforeunload"
$(window).unload(function () {
alert("Do Reset..");
//I will call my method
});
</script>
Thanks
Zubair