Run script when page fully loaded, method not working. RRS feed

  • Question

  • I'm trying to run a function when the page has fully loaded. I've heard that the best method for this is to use the window.onload, but I am having difficulty getting this to work. My code is:

     $(window).load(function() {
     window.onload = functionData();

    It's not working.  

    Monday, November 25, 2013 10:40 AM

All replies

  • Hi,

    To execute some script when the form has loaded, use the onload event on the form. Open your form that you are adding the Web Resource to and then use Form properties -> Event Handlers -> OnLoad -> Add -> specify the web resource and the onload function you want to be called.



    Scott Durow
    Blog www.develop1.net    Follow Me
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Monday, November 25, 2013 11:58 AM