Examveda
Examveda

Which method is an alternative of the property location of a window object?

A. submit()

B. locate()

C. load()

D. none of the mentioned

Answer: Option A

Solution(By Examveda Team)

It is possible for JavaScript code to script HTTP, however. HTTP requests are initiated when a script sets the location property of a window object or calls the submit() method of a form object. In both cases, the browser loads a new page.

Join The Discussion

Related Questions on Document Object Model and Event Handling