Class: 'DomReady'

'DomReady'

new 'DomReady'()

DomReady

Normalize the DOM ready event.

Source:

Extends

Methods

<static> add(handler)

Adds a function handler to the DomReady queue.
Parameters:
Name Type Description
handler function Handler function that will be called when the DOM is ready.
Source:
Example
// Create a function that needs to be executed when the DOM is ready.
var displayMessage = function()
{
    document.getElementsByTagName('html')[0].innerHTML = 'The DOM is ready!';  
}

// Add the function to the DomReady queue.
Core.DomReady.add(displayMessage);