javascript window.onload

wait for the window to load and then run a function

Javascript

window.onload = function() {
  my_function();
}
function my_function() {
console.log('yo');
}

Other Items in javascript
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹

Random Quote
There is no way to happiness. Happiness is the way.
Unknown