Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. When will the fourth argument to open() useful?

  2. A.

     When the second argument names a retired window

    B.

     When the first argument names an existing window

    C.

     When the second argument names an existing window

    D.

     When the first argument names a retired window

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The fourth argument to open() is useful only when the second argument names an existing window. This fourth argument is a boolean value that indicates whether the URL specified as the first argument should replace the current entry in the window’s browsing history (true) or create a new entry in the window’s browsing history (false). Omitting this argument is the same as passing false.


Be The First To Comment