The window object has a load event:
YAHOO.util.Event.on(window, "load", function(e) { /*handle event*/});
You may also want to look at the onDOMReady function:
onDOMReady happens sooner than the window's load event and is often preferred for that reason.
A good example and explanation of pageload/timing events, including onDOMReady, is here:
Regards,
Eric
On Oct 7, 2008, at 10:18 AM, amina_1945 wrote:
Hi
I want to animate line drawing on page load.Is there any event in
yahoo.util.event library??
Thanks