Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Is there any event that is triggered on page load   Message List  
Reply | Forward Message #38869 of 52119 |
Re: [ydn-javascript] Is there any event that is triggered on page load

amina_1945,

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




Tue Oct 7, 2008 6:18 pm

ericmiraglia
Online Now Online Now
Send Email Send Email

Forward
Message #38869 of 52119 |
Expand Messages Author Sort by Date

Hi I want to animate line drawing on page load.Is there any event in yahoo.util.event library?? Thanks...
amina_1945
Offline Send Email
Oct 7, 2008
5:18 pm

amina_1945, 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...
Eric Miraglia
ericmiraglia
Online Now Send Email
Oct 7, 2008
6:19 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help