Results 1 to 2 of 2

Thread: javascript-Tabsetting

  1. #1

    Thread Starter
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446

    javascript-Tabsetting

    hi there

    how to set the tab conctrol of my form using javascript

    plese help me.


    buddu
    prasad

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    The tab order is set in the order of the way it is written in the HTML form. The only way that I think you can override the order is to force the tab by using the ONBLUR of each control.
    Code:
    <form>
    <input TYPE = "text" NAME = "txtOne" VALUE = "text one" ONBLUR = "txtThree.focus();">
    <input TYPE = "text" NAME = "txtTwo" VALUE = "text two">
    <input TYPE = "text" NAME = "txtThree" VALUE = "text three">
    </form>
    The above code in txtOne forces a tab to txtThree. Remove the ONBLUR event and it tabs normally.
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

Posting Permissions

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



Click Here to Expand Forum to Full Width