702). What does a History object contain?

[A]URL
[B]Parameters
[C]Attribute values
[D]Property

Show Answer

703). The history object is a part of which object?

[A]Property
[B]Window
[C]Location
[D]Screen

Show Answer

705). What is the purpose of the method forward()?

[A]Loads any random URL in the history list
[B]Loads the previous URL in the history list
[C] Loads a specific URL from the history list
[D] Loads the next URL in the history list

Show Answer

706). How will you update the URL displayed in the location bar?

[A]location
[B] location.URL
[C]location.hash
[D]url

Show Answer

707). How do you add a particular state to the browsing history?

[A]pushState()
[B]replaceState()
[C] state()
[D]addstate()

Show Answer

708). What does the pushState() method do?

[A]Removes the state
[B]Adds new state
[C]Replaces the state
[D]Change the state

Show Answer

709). Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?

[A]replaceState()
[B]replace(state)
[C]replace()
[D]change()

Show Answer

710). How many parameters does the replaceState() method take?

[A]2
[B]3
[C]4
[D]5

Show Answer

711). What is the purpose of the event window.onpopstate?

[A]When a state object is replaced
[B]When a state object is added
[C]When a state object is removed
[D]When a state object is changed

Show Answer