There are other non-library solutions to domready out there: One of the first: http://dean.edwards.name/weblog/2006/06/again/ or taken from Mootools: http://snipplr.com/view/6029/domreadyjs/ etc.
Just Google domready, and as Richard said, look at jQuery's source. On May 21, 6:25 pm, Michael Liao <askxuef...@gmail.com> wrote: > Hi > I am using jquery, but in some pages I cannot use it but I need to > write js code like: > > $('document').ready(myInitFunction) > > How can i write js to do this work? is it document.onLoad() event? > thanks!