1.

The style property belongs to which of the following object?(a) Element(b) Window(c) Location(d) NavigationI had been asked this question in a national level competition.My question is taken from JavaScript and Memory Leak in chapter Caching, Debugging and Animation of JavaScript

Answer» CORRECT answer is (a) Element

For explanation I WOULD say: Each Element object has STYLE and CLASSNAME properties that allow scripts to specify CSS styles for a document element or to ALTER the CSS class names that apply to the element.


Discussion

No Comment Found

Related InterviewSolutions