“JS Call Function Onload” Código de respuesta

JS Call Function Onload

window.onload = function() {
  yourFunction(param1, param2);
};
Master Aniket

Llamada de función de JavaScript de Onload

window.onload = function() {
  yourFunction(param1, param2);
};
//DOMContentLoaded It means when the DOM Objects of the document are fully loaded and seen by JavaScript, also this could have been "click", "focus"...
//function() Anonymous function, will be invoked when the event occurs.
// not work with IE8
document.addEventListener("DOMContentLoaded", function() {
  you_function(...);
});
code fighter

Respuestas similares a “JS Call Function Onload”

Preguntas similares a “JS Call Function Onload”

Más respuestas relacionadas con “JS Call Function Onload” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código