Possible Duplicate:
$(document).ready equivalent without jQuery
I have a script I need to write that needs to execute on DOM ready, but I can't have dependency on JQuery as part of the script.
I want to imitate $(document).ready()
, How can I implement this behavior in the shortest way?