Results 1 to 2 of 2

Thread: Set focus

  1. #1
    Star Lounger
    Join Date
    Jun 2002
    Location
    London, Gtr London, England
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Set focus

    Can anyone help me set focus on a particular object when a form opens?

  2. #2
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles, California, USA
    Posts
    1,734
    Thanks
    0
    Thanked 3 Times in 1 Post

    Re: Set focus

    The best way to find out how things are done is to find a page that's doing it and then view the Source. If you look at the screen you get here when you go to Post a Message you'll see the insertion point is in the Subject textbox and in the source you'll see:

    <body onLoad="document.forms[0].Subject.focus();">
    <IMG SRC=http://www.wopr.com/w3tuserpics/Eileen_sig.gif>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •