QUESTION IMAGE
Question
what does the document.ready() event do? a it fires when the browser is ready for a new command. b it fires when all the images are ready to display. c it fires when a page has been fully constructed. d it fires when all the scripts have loaded.
The document.ready() event (in jQuery, for example) is triggered when the DOM (Document Object Model) of a web page has been fully constructed, meaning the HTML structure is parsed and ready for manipulation. Option A is incorrect as it's not about the browser being ready for a new command. Option B is incorrect because waiting for all images to load is the window.load event (or related to image - specific loading), not document.ready(). Option D is incorrect as document.ready() doesn't wait for all scripts to load; it's about the DOM being ready. So the correct option is C.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. It fires when a page has been fully constructed.