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

Description

The <option /> element provides the markup to hold a single choice in a drop-down menu, also known as a combo box. See the section on HTMLSelectElement, later in this chapter, for details.

Netscape and Internet Explorer 4+ provide an alternative way to construct <option /> elements: its Option() constructor function. This predates the DOM and has been retained for backward-compatibility. The syntax for the Option() constructor function is as follows:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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