how to use object.onload in javascript code example Example: javascript onload <body onload="myFunction()">