“JS Call Function Onload” Kode Jawaban

JS Call Function Onload

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

panggilan fungsi javascript on

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

Jawaban yang mirip dengan “JS Call Function Onload”

Pertanyaan yang mirip dengan “JS Call Function Onload”

Lebih banyak jawaban terkait untuk “JS Call Function Onload” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya