What is the use of history object?

Answers were Sorted based on User's Feedback



What is the use of history object?..

Answer / hr@tgksolutions.com

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

What is the use of history object?..

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

Post New Answer

More JavaScript Interview Questions

How to check if a variable is an integer in javascript ?

1 Answers  


What is the difference between java and java script?

9 Answers   IWW, Wipro,


Name the numeric constants representing max, min values?

1 Answers  


Who introduced javascript?

1 Answers  


Are Attributes and Property the same?

1 Answers  


What is a boolean search?

1 Answers  


What are undeclared and undefined variables?

1 Answers  


What are the boolean operators supported by javascript? And operator: &&

1 Answers  


How do Javascript primitive/object types passed in functions?

1 Answers  


What is the meaning of callback function?

1 Answers  


What is a fixed-width table and its advantages?

1 Answers  


How dhtml is used in javascript?

1 Answers  


Categories