in Education by
What is the purpose of the assign() method? (a) Only loading (b) Loading of window and display (c) Displays already present window (d) Unloading of window This question was posed to me during an interview for a job. My doubt is from The Window Object in section Document Object Model and Event Handling in Javascript of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Right answer is (b) Loading of window and display Explanation: The assign() method of the Location object makes the window load and display the document at the URL you specify. The difference between this method and replace(), is that replace() removes the URL of the current document from the document history, meaning that it is not possible to use the “back” button to navigate back to the original document.

Related questions

0 votes
    Why is the replace() method better than the assign() method? (a) Reliable (b) Highly manageable ( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How to assign the image source in JavaScript? (a) image = url (b) source( url ) (c) image ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the method symbols in R? (a) Draw symbols (b) Draw other shapes (c) Draw ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the method JSON.parse()? (a) Parses a string to integer (b) Parses a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the method createDocumentFragment()? (a) Creates a fragment object (b) Creates a ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the method getUserData(key)? (a) Returns the associated object (b) Gets the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the method forward()? (a) Loads any random URL in the history list (b) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the method item()? (a) Returns node after the specified index (b) Returns ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the radix parameter in the parseInt() method? (a) Numeral system not to be ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the method localeCompare()? (a) If the reference string comes before or after ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the adoptNode() method? (a) Removes node (b) Makes it ready for insertion ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the startTimeLogging() method? (a) Start the timer (b) Capture time logging ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the method nodeMap.setNamedItem()? (a) Sets ID (b) Sets attribute node (c ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the method ActiveXObject()? (a) Used to call automation object (b) Used to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the RegExp method test()? (a) Tests for a match in its float parameter (b ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
...