1.

Which handler is triggered when the content of the document in the window is stable and ready for manipulation?(a) onload(b) manipulate(c) create(d) oncreateI had been asked this question in examination.My question is from JavaScript and Memory Leak in section Caching, Debugging and Animation of JavaScript

Answer»

Correct answer is (a) ONLOAD

Easiest explanation: One of the most important event handlers is the onload handler of the Window object. It is TRIGGERED when the content of the document DISPLAYED in the window is stable and ready to be manipulated. JAVASCRIPT code is commonly WRAPPED within an onload event handler.



Discussion

No Comment Found

Related InterviewSolutions