It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Processing two onload function from hazrizal84

Processing two onload function from hazrizal84

Postby rangana on Tue Jun 24, 2008 9:00 am

This was sent to me via PM, and thought I would share the solution in the public forum
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: Select all
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.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby hazrizal84 on Tue Jun 24, 2008 11:48 pm

thank you very much sir...u really help me..
hazrizal84
 
Posts: 22
Joined: Tue Jun 10, 2008 11:25 am

Postby rangana on Wed Jun 25, 2008 12:25 am

No problem, glad I could help ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 8 guests