»
AnglaisFran�aisVietnamien

Imprimer - Multiple Functions onLoad - JavaScriptBank.com

Version compl�te: jsB@nk » Snippet » Multiple Functions onLoad
URL: https://www.javascriptbank.com/multiple-functions-onload.html

Multiple Functions onLoad © JavaScriptBank.comJe utiliser ce Le code JavaScript si vous voulez charger serval fonctions avec onLoad événement. Très court script et facile à utiliser, mais vous pouvez charger des fonctions illimitées.

Version compl�te: jsB@nk » Snippet » Multiple Functions onLoad
URL: https://www.javascriptbank.com/multiple-functions-onload.html



JavaScript
<script type="text/javascript">// Created by: Simon Willison | http://simon.incutio.com/function addLoadEvent(func) {  var oldonload = window.onload;  if (typeof window.onload != 'function') {    window.onload = func;  } else {    window.onload = function() {      if (oldonload) {        oldonload();      }      func();    }  }}addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);addLoadEvent(function() {  functionHere();});</script>