Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Processing two onload function from hazrizal84



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 546
Location: Cebu City Philippines

PostPosted: Tue Jun 24, 2008 10:00 am    Post subject: Processing two onload function from hazrizal84 Reply with quote

This was sent to me via PM, and thought I would share the solution in the public forum
Quote:

hi sir..may i ask u smthing..?
if there are 2 window.onload statements in a single page, how can we make both of them functioned?

i have window.onload = startBlink; and window.onload=function() {}

can u help me sir?..


You can do it like this:
Code:

window.onload=function()
{
//Whatever codes here
startBlink();
}


See if it helps.

P.S. Don't use PM, this is a public board and members
might have the same problem as yours.
Back to top
View user's profile Send private message Yahoo Messenger
hazrizal84



Joined: 10 Jun 2008
Posts: 15

PostPosted: Wed Jun 25, 2008 12:48 am    Post subject: Re: Processing two onload function from hazrizal84 Reply with quote

thank you very much sir...u really help me..
Back to top
View user's profile Send private message
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 546
Location: Cebu City Philippines

PostPosted: Wed Jun 25, 2008 1:25 am    Post subject: Re: Processing two onload function from hazrizal84 Reply with quote

No problem, glad I could help Wink
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap