Which of the following is not a method of the window object in JavaScript ?
Show answerHide answer
Correct answer: (C) name( )
Explanation
open(), close() and prompt() are methods of the window object. name is a property (window.name), not a method.
Correct answer: (C) name( )
Explanation
open(), close() and prompt() are methods of the window object. name is a property (window.name), not a method.
This is question 82 of DSSSB TGT Computer Science Practice Set 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.