How to delay calling of javascript function?

后端 未结 5 2061
野性不改
野性不改 2020-11-29 06:09

I\'m new to JavaScript.

I would like to call JavaScript / jQuery function after the page load in aspx page.

I tried using

5条回答
  •  遥遥无期
    2020-11-29 06:21

    Would be best to use a framework like jQuery.
    In jQuery you can define a function like this:

    $(document).ready(function() {
    
    });
    

    This way it will be called when the DOM is fully loaded.

    A full documentation of the ready() function can be found here.

提交回复
热议问题