DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
YUI - Determine When The DOM Is Ready To Be Safely Used.
<script type="text/javascript">
// Remember to include: .../build/yahoo-dom-event/yahoo-dom-event.js
YAHOO.example.init = function()
{
// Init stuff Here
var myAutoComp = new YAHOO.widget.AutoComplete("myInput","myContainer", myDataSource);
};
YAHOO.util.Event.onDOMReady(YAHOO.example.init);
</script>





