Question 82

Which of the following is not a method of the window object in JavaScript ?

  1. Aopen( )
  2. Bclose( )
  3. Cname( )
  4. Dprompt( )
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.

From DSSSB TGT Computer Science Practice Set 2

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.