77.1k views
4 votes
Which of the following is not a method of the history object?

Question 5 options:

replace()

back()

forward()

go()

1 Answer

1 vote

Answer:

replace()

Step-by-step explanation:

The history object in javascript corresponds to browsing history.

It has the following methods for navigating through the history list:

back(): Go back in the history list

forward(): Go forward in the history list

go() : Navigate to the currently pointed url in the history list. It takes a parameter which can either be a numeric index or a string which is matched with the history list content.

replace() is not a method in the history object.

User Merthan Erdem
by
7.7k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.