• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Forms > Setting the Tab Order

Setting the Tab Order

By pressing the Tab key, visitors can move through the fields in your form from top to bottom. Depending on your form's layout, you may prefer to set the tab order yourself so that the visitor fills out all the fields in a particular group before going on to the next group.

To set the tab order:

In the form element's tag, typeTABINDEX=n, where n is the number that indicates the tab order.

Tip

The value for TABINDEX can be any number between 0 and 32767.

Tip

By default, the tab order depends on the order of the elements in the HTML code. When you change the tab order, the lower numbered elements are activated first, followed by higher numbered elements.

Tip

In a form, you can assign tab order to text fields, password fields, checkboxes, radio buttons, text blocks, menus, and buttons.

Tip

You can also assign tab order to links and client-side image maps. For more information, consult Setting the Tab Order for Links on page 127 or Creating a Client-Side Image Map on page 130, respectively.

Tip

OK, I cannot tell a lie. The first time your visitor hits the Tab key, the Address field (where the current URL is displayed) is activated (even if its toolbar is hidden). Then, the next tab brings the visitor where you say.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint