window.history.length maximum value

Value of window.history.length is very important in our project to detect backbutton is clicked on browser. However I realized that window.history.length does not pass 50. How to solve this ? Thanks for your help.

Answers


It is possible to detect "Back Button Clicked" via iFrames. You can find the answer here.


Depending on whether you need it to be persistent across sessions and surviving a clean of the user information (cache, localStorage, etc...) you might want to adopt different solutions.

One of the solutions could be to do something like this:

window.onpopstate = function(event) {
  var count = parseInt(localStorage.getItem('history-changes-count'), 10);
  localStorage.setItem('history-changes-count', ++count);
};

Note that onpopstate gets invoked only after a user action, it doesn't work if you modify the history programmatically.

More on the subject: https://developer.mozilla.org/en-US/docs/DOM/window.onpopstate


Need Your Help

How to use the Shiro's SaltedAuthenticationInfo?

java salt shiro

I work on an authentication component for my application. I'm using the Apache Shiro API with salted password.

Is it possible to find the local computer in AD without hardcoding its domain?

c# .net active-directory

I'm using C# to find my local computer's objectGuid by querying Active Directory. To do this, I'm currently using a DirectorySearcher, passing it a (hardcoded) path as the search root, and then

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.