Posts

Showing posts from September, 2015

Page Unload Show Notification to user

<script>
      jQuery("body").append("<div style='background-color: #f5f5f5; position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 99999;display:none;opacity: 0.8;' id='pageloader'><img src='http://217.37.162.106/sme/logo/ajax-loader.gif' style='top: 50%; left: 50%; max-width: 30px; position: fixed;' /></div>");
jQuery(window).on('beforeunload', function(){
jQuery("#pageloader").css("display","block");
});
</script>