Single Choice
Easy
QWhich approach loads the new document first and then deletes the one that is currently open from the browsing history?
ID: #5093
Javascript DOM & Event Handling MCQ
176 views
Question Info
#5093Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Before loading the new document, replace() deletes the current one from the browsing history.
Assign method and replace() vary in that replace() omits the current document's URL from the document history, making it impossible to return to the original document by using the "back" button.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic