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.
window.addEvent('domready', function() { alert('The DOM is ready!'); });
© Linux.ria.ua, 2008-2024 |