Lakshya Education MCQs

Question: What is the code snippet to go back to a history twice?
Options:
A.history(2);
B.history(-2);
C.history.go(-2);
D.history.go(2);
Answer: Option C

Submit Answer & Explaination

Earn Reward Points by submitting Detailed Explaination for this Question

More Questions on This Topic :

Question 1. If the window has child windows, how will the browsing histories be affected?
  1.    Numerically interleaved
  2.    Chronologically interleaved
  3.    Both Numerically and Chronologically interleaved
  4.    None of the mentioned
Answer: Option B
Question 2. The length property belongs to which of the following objects?
  1.    Window
  2.    Element
  3.    History
  4.    Document
Answer: Option C
Question 3. What is the special feature of the modern web applications?
  1.    Can alter contents without loading document
  2.    Must load the document to manipulate
  3.    All of the mentioned
  4.    None of the mentioned
Answer: Option A
Question 4. The history property belongs to which object?
  1.    Element
  2.    Window
  3.    History
  4.    Location
Answer: Option C
Question 5. Why is the replace() method better than the assign() method?
  1.    Reliable
  2.    Highly managable
  3.    More efficient
  4.    Handles unconditional loading
Answer: Option D
Question 6. What is the purpose of the assign() method?
  1.    Only loading
  2.    Loading of window and display
  3.    Displays already present window
  4.    Unloading of window
Answer: Option B

Check all Questions in this Topic : Click HERE