What does History.length property do?

 Posted by Rajesh_Kumar on 2/20/2014 | Category: JavaScript Interview questions | Views: 1612 | Points: 40

It's an static property of History object which returns the number of URLs in the history list.In other words we can say that,The length property of the history object returns the number of elements in the history list.


For Example:
var count = history.length;
It will return number of pages or URLs count which are visited by users.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response