Want to Replace "onload" function

Discussion in 'HTML & Website Design' started by neweraprime, Dec 23, 2009.

  1. #1
    Hi friends,
    I have a javascript function in my code,and it loads when body of the page load.i use it as......<body onload="functionname()">....i just want that my function start working,when someone open the URL..it doesn't wait for complete body onload.
     
    neweraprime, Dec 23, 2009 IP
  2. ibg

    ibg Member

    Messages:
    25
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    38
    #2
    Just put it in the <head> tag like
    <script type="text/javascript">
    functionname();
    </script>
     
    ibg, Dec 23, 2009 IP
  3. CyberWizard

    CyberWizard Well-Known Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    works :) :) Thanks
     
    CyberWizard, Dec 23, 2009 IP