1.

Which property in the Window object is used to refer to a Location object?(a) position(b) area(c) window(d) locationThis question was posed to me by my school principal while I was bunking the class.This key question is from JavaScript in Web Browsers in division Server-Side and Client-Side Scripting of JavaScript

Answer» CORRECT answer is (d) LOCATION

To explain I would say: The Window object defines properties like location, which REFERS to a Location object that specifies the URL currently DISPLAYED in the window and allows a script to LOAD a new URL into the window. The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page.


Discussion

No Comment Found

Related InterviewSolutions