Sometimes it makes sense to wait until all the texts, images, videos and sounds are loaded on a web page, before you try to run, write & #112


What you Need

  • JavaScript editor

    With OnLoad in JavaScript
    • Write a function, you want to be executed only when the page is fully loaded. Assume it is named GO. the
    • Add the following attribute to the BODY tag:onLoad="GO()"
    • you Give the onLoad handler, write & #112







How to use OnLoad in JavaScript


Sometimes it makes sense to wait until all the texts, images, videos and sounds are loaded on a web page, before you try to run, write & #112


What you Need

  • JavaScript editor

    With OnLoad in JavaScript
    • Write a function, you want to be executed only when the page is fully loaded. Assume it is named GO. the
    • Add the following attribute to the BODY tag:onLoad="GO()"
    • you Give the onLoad handler, write & #112

How to use OnLoad in JavaScript

Sometimes it makes sense to wait until all the texts, images, videos and sounds are loaded on a web page, before you try to run, write & #112
How to use OnLoad in JavaScript
How to use OnLoad in JavaScript
Recommend to friends
  • gplus
  • pinterest

Recent posts

Comment

Leave comment

Rating