CD-508 Part VI . Appendixes Listing 26-6: Using

CD-508 Part VI . Appendixes Listing 26-6: Using the options[index].value Property Color Changer 2

Choose a background color:

selectedIndex NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example In the inspect()function of Listing 26-7, notice that the value inside the options property index brackets is a reference to the object s selectedIndexproperty. Because this property always returns an integer value, it fulfills the needs of the index value for the options property. Therefore, if you select Green in the pop-up menu, form.colorsList.selectedIndex returns a value of 1; that reduces the rest of the reference to form.colorsList.options[1].text, which equals Green. SELECT.selectedIndex
If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.

Leave a Reply