Results 1 to 3 of 3

Thread: To know Onload function

  1. #1
    Join Date
    Feb 2009
    Posts
    63

    To know Onload function

    hie everyone,

    Can anyone explain me what is body onload function in HTML ? and how can I use it while writing HTML script ?

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: To know Onload function

    <body onLoad="javascript:myScript();">

    and have a script that may parse current url, do some other processing

    script should look like

    <script language="javascript">

    function myScript()
    {

    //all your processing

    }

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: To know Onload function

    Body Onload Function is a function that is written in HTML under the body section with onload as an attribute. The javascript is written which parses the current url.
    The browser triggers "onLoad" when the document is finished loading.

Similar Threads

  1. Set href value using javascript at onload
    By Jaganmohini in forum Software Development
    Replies: 4
    Last Post: 14-05-2010, 09:52 AM
  2. c# function equivalent to gettime function in javascript
    By Omaar in forum Software Development
    Replies: 4
    Last Post: 10-03-2010, 10:44 PM
  3. Replies: 5
    Last Post: 27-02-2010, 07:52 PM
  4. How does abstract function differs from virtual function?
    By Maddox G in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 11:32 AM
  5. How to use onload audio to index pages
    By Solaris in forum Windows Software
    Replies: 3
    Last Post: 06-08-2009, 10:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,874,339.09757 seconds with 16 queries