1.

How many methods are there in the History object?(a) 3(b) 4(c) 5(d) 6I had been asked this question in an online quiz.The doubt is from History Management in JavaScript topic in chapter Sockets of JavaScript

Answer»

The CORRECT answer is (a) 3

To EXPLAIN: There are three methods belonging to the History OBJECT NAMELY :

back()

forward()

go()

back() loads the PREVIOUS URL, forward loads the next URL and go() loads a specific URL in the history list.



Discussion

No Comment Found

Related InterviewSolutions