set default cursor position

Discussion in 'ASP .Net' started by Grey, Sep 22, 2004.

  1. Grey

    Grey Guest

    how to set the default cursor position to the one textbox in asp.net
     
    Grey, Sep 22, 2004
    #1
    1. Advertisements

  2. Grey

    Shiva Guest

    Here is one way to do it (using body onLoad event):

    <body onLoad='<%= "window.document.forms[0]." + TextBoxID.ClientID +
    ".focus();" %>'>
    OR
    <body onLoad='window.document.forms[0].<%= TextBoxID.ClientID %>.focus();'>

    "Grey" <> wrote in message
    news:...
    how to set the default cursor position to the one textbox in asp.net
     
    Shiva, Sep 22, 2004
    #2
    1. Advertisements

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. =?Utf-8?B?VG9tYXMgS2VwaWM=?=

    Changing DEFAULT cursor to WAIT cursor in ASP

    =?Utf-8?B?VG9tYXMgS2VwaWM=?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,556
    Bruce Barker
    Apr 5, 2005
  2. Jean-Benoit MORLA
    Replies:
    1
    Views:
    3,960
    Michael Borgwardt
    May 24, 2004
  3. Peer W Hansen
    Replies:
    0
    Views:
    6,823
    Peer W Hansen
    May 16, 2004
  4. dmaziuk
    Replies:
    3
    Views:
    957
    Chris Gonnerman
    Jan 25, 2011
  5. James Wong
    Replies:
    4
    Views:
    755
    James Wong
    Jul 14, 2004
  6. SibAndela
    Replies:
    1
    Views:
    340
    Jeff Cochran
    Sep 26, 2004
  7. duzuike
    Replies:
    2
    Views:
    254
    duzuike
    Aug 11, 2005
  8. Ciaran
    Replies:
    9
    Views:
    893
    Ciaran
    Nov 25, 2009
Loading...