News

Log In Sponsors
Partner Sites





Processing two onload function from hazrizal84



This was sent to me via PM, and thought I would share the solution in the public forum [quote:26m6lywz] 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?.. [/quote:26m6lywz] You can do it like this: [code:26m6lywz] window.onload=function() { //Whatever codes here startBlink(); } [/code:26m6lywz] See if it helps. P.S. Don't use PM, this is a public board and members might have the same problem as yours.

Click here to read the whole forum topic