Sha256: 78e68e590b22b79aea3ad8a51d491c2a9813eed84f7ed58a6f8029497ce77871

Contents?: true

Size: 702 Bytes

Versions: 7

Compression:

Stored size: 702 Bytes

Contents

# Window Event: domready

Contains the window [Event][] 'domready', which executes when the DOM is loaded.

To ensure that DOM elements exist when the code attempts to access them is executed, they need to be placed within the 'domready' event.

### Example:

	window.addEvent('domready', function() {
		alert('The DOM is ready!');
	});

### Notes:

- This event is only available to the window element.
- In some versions of Internet Explorer (ie. IE6) a script tag might be executed twice if the content-type meta-tag declaration is put after a script tag. The content-type should always be declared before any script tags.

### See Also:
[Element.Event][Event]

[Event]: /core/Element/Element.Event

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lsd_rails-0.1.6 Packages/mootools-core/Docs/Utilities/DOMReady.md
lsd_rails-0.1.5 Packages/mootools-core/Docs/Utilities/DOMReady.md
lsd_rails-0.1.4 Packages/mootools-core/Docs/Utilities/DOMReady.md
lsd_rails-0.1.3 Packages/mootools-core/Docs/Utilities/DOMReady.md
lsd_rails-0.1.2 Packages/mootools-core/Docs/Utilities/DOMReady.md
lsd_rails-0.1.1 Packages/mootools-core/Docs/Utilities/DOMReady.md
lsd_rails-0.1 Packages/mootools-core/Docs/Utilities/DOMReady.md