call javascript function on html element load code example Example: javascript onload <body onload="myFunction()">