window.onload = fujnction code example Example: window onload function load(argument) { // body... } window.onload = load;