What is the use of history object?
Answers were Sorted based on User's Feedback
From the current page or another page, you can navigate back and forward to previous pages using a browser's history object. History objects can be used in three different ways.
The previous page is loaded using history.back().
The next page is loaded using history.forward().
heritage.go(number) - For forward motion, the number might be positive; for backward motion, it can be negative. The specified page number loads.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / Shashi Kant Srivastava
The history object in JavaScript allows you to manipulate the browsing history. It provides methods like go(), back(), forward(), and others, which can be used to navigate through the history.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to check if a variable is an integer in javascript ?
What is the difference between java and java script?
Name the numeric constants representing max, min values?
Who introduced javascript?
Are Attributes and Property the same?
What is a boolean search?
What are undeclared and undefined variables?
What are the boolean operators supported by javascript? And operator: &&
How do Javascript primitive/object types passed in functions?
What is the meaning of callback function?
What is a fixed-width table and its advantages?
How dhtml is used in javascript?