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> Considering that when an option button is selected, the appropriate website should be opened immediately, what should the change() function look like?
Correct Answer: location=document.frmOne.selList.options[document.frmOne.selList.selectedIndex].value
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions