document.onReady()

Attaches an event handler callback function to the “DOMContentLoaded” event of the document object.

Usage:
HTMLFormElement = Form.onReady(callback)
Member of:
document
Parameters:
callback – the function to call when the “DOMContentLoaded” event occurs (required).
Returns:
A reference to the document object, thus allowing for command chaining.
Note:
This is just a shorthand function for the .on method, specific for the “DOMContentLoaded” event. See there for more information and examples.

See also

More information