When does a body onLoad gets called?

前端 未结 4 1032
旧巷少年郎
旧巷少年郎 2020-12-19 07:29

I need to understand when does a body\'s onload gets called

I read in w3school that onload=Script to be run when a document load what does

4条回答
  •  抹茶落季
    2020-12-19 08:30

    Onload executes when DOM fully loaded.This means it is executed after end of your page. This is useful when you want to do some task when document is fully loaed.

    You can do this in many ways but few ways is here

    
    

    is similar to

    
    
                                     
                  
提交回复
热议问题