CD-508 Part VI . Appendixes Listing 26-6: Using the options[index].value Property
Color Changer 2 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.
This entry was posted
on Sunday, February 24th, 2008 at 9:07 am and is filed under Domain.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.