What does History.length property do?

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

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.

Syntax:
history.length


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