InterviewSolution
Saved Bookmarks
| 1. |
The attribute location belongs to which element?(a) document(b) html(c) image(d) preI have been asked this question in exam.The query is from Cache Variables and Properties across Scope topic in section Caching, Debugging and Animation of JavaScript |
|
Answer» RIGHT OPTION is (a) DOCUMENT Best explanation: window.location.href returns the href (URL) of the CURRENT page. The attribute location belongs to the document element. |
|