Window. DomReady.js

Contains the custom event domready, for window.

License

MIT-style license.

Summary
Window. DomReady.jsContains the custom event domready, for window.
Custom Events
Events
domreadyexecutes a function when the dom tree is loaded, without waiting for images.

Custom Events

Summary
Events
domreadyexecutes a function when the dom tree is loaded, without waiting for images.

Events

domready

executes a function when the dom tree is loaded, without waiting for images.  Only works when called from window.

Credits

© Dean Edwards/Matthias Miller/John Resig, remastered for MooTools.

Arguments

fnthe function to execute when the DOM is ready

Example

window.addEvent('domready', function(){
  alert('the dom is ready');
});

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi