What does Previous property do in History object?

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

The Previous is also an static property of History which contains the complete URL of the previous element in the History list.This functionality or the URL visited is the same as pressing the back button or menu.

In other words,we can say that,it returns the URL of the previous document in the history array.

Note:This property has no default value.

Syntax:
history.previous


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response