Safari Browser Back button issue

After logout browser should not allow to go back when user clicks on browser back button. This functionality is working fine in IE, FF but not working in Safari. Tryied a lot but not able to solve. Here is the code that i have used.

$(document).ready(function(){ 
   window.location.hash="";
   window.location.hash="";
   window.onhashchange=function(){
window.location.hash="";
   } 
});

Answers


You can Disable safari browser back button if above trick is not working for you. try this to disable back button-

   function noBack(){window.history.forward();}
   noBack();
   window.onload=noBack;
   window.onpageshow=function(evt){if(evt.persisted)noBack();}
   window.onunload=function(){void(0);}

Need Your Help

Amazing Bad Performance after converting ObjectContext to DbContext

c# entity-framework dbcontext objectcontext

After I changed from ObjectContext to DbContext (database first) in a very big app, my server was going crazy about Garbage Collector, performance was a mess and lots of not reachable, timeout, and...

How to sent arp packets to queue from arptables

linux iptables packets arp

My aim was to find a way to process(drop,accept,forward and etc.) packets that are from Layer 2 ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.