MCQs > IT & Programming > JavaScript > Consider the following code snippet:
Considering that when an option button is selected, the appropriate website should be opened immediately, what should the change() function look like?

JavaScript MCQs

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?

Answer

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

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More JavaScript MCQ Questions

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it