function first(){ alert('1'); } function second(){ alert('2'); } window.addEventListener("load", first, false); window.addEventListener("load", second, false);