SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    runat="server" Golgotha's Avatar
    Join Date
    Nov 2001
    Location
    Colorado
    Posts
    2,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    This one may be hard??

    I don't know??

    You know when you use the Tab key in IE it selects something and places the dashed line around it?

    Well what I want to do is onLoad have it have something selected like that. So how do you tell it to have that focus? again all most like telling it where to start with the Tab key?

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    document.forms[x].elements[y].focus();

    and if you want to select the text
    document.forms[x].elements[y].select();


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
  •