Question: Consider the following code snippet:<form name="frmOne">
<select name="selList" size="1" onChange="change()">
<option value="http://www.hotmail.com">tHomail</option>
<option value="http://www.yahoo.com">Yahoo</option>
</select>
</form>
You want that when an option button is selected, the appropriate website should be opened immediately. What will the change() function look like?
A
B
C
D
url=document.frmOne.selList.options[document.frmOne.selList..item].value
B
url=document.frmOne.selList.options[document.frmOne.selList.selectedIndex].value
C
location=document.frmOne.selList.options[document.frmOne.selList.item].value.value
D
location=document.frmOne.selList.options[document.frmOne.selList.selectedIndex].value
Note: Not available