textbox onload

Discussion in 'Javascript' started by murali.trichy, Feb 20, 2006.

  1. hi,
    I want to capture Textbox's onLoad / onInit / onactivate event. but i'm

    not able to do this. Any only knows Pls help.
    thanks
    -murali
    murali.trichy, Feb 20, 2006
    #1
    1. Advertising

  2. murali.trichy

    VK Guest

    murali.trichy wrote:
    > hi,
    > I want to capture Textbox's onLoad / onInit / onactivate event. but i'm
    > not able to do this. Any only knows Pls help.


    Textbox is not a dynamic data structure (unless databound in IE's data
    binding). It is rendered and displays its default value while page is
    loading together with other page elements, and it is available for
    scripting on page load.

    <body
    onload="alert(document.forms['myForm'].elements['myTextBox'].value)">
    VK, Feb 20, 2006
    #2
    1. Advertising

  3. murali.trichy wrote:

    > I want to capture Textbox's onLoad / onInit / onactivate event. [...]


    Besides there is no such object or event: Why?


    PointedEars
    Thomas 'PointedEars' Lahn, Feb 20, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Asad
    Replies:
    1
    Views:
    9,821
    Ashish M Bhonkiya
    Apr 27, 2004
  2. Fabio R.
    Replies:
    0
    Views:
    792
    Fabio R.
    Mar 25, 2005
  3. David Otton

    window.onload and body.onload differences

    David Otton, Nov 4, 2004, in forum: Javascript
    Replies:
    2
    Views:
    543
    Martin Honnen
    Nov 4, 2004
  4. Replies:
    5
    Views:
    257
    Thomas 'PointedEars' Lahn
    May 15, 2005
  5. marco

    onload -->* no onload

    marco, Jun 22, 2006, in forum: Javascript
    Replies:
    7
    Views:
    202
    marco
    Jun 24, 2006
Loading...

Share This Page