Event OnChange

Event OnChange:

<html>
<head>
<script>
function preferedBrowser()
{ prefer=document.forms[0].browsers.value;
alert(“You prefer browsing internet with ” + prefer);¬†}
</script>
</head>
<body>
<form>
Choose which browser you prefer:
<select onchange=”preferedBrowser()”>
<option value=”Internet Explorer”>Internet Explorer</option>
<option value=”Firefox”>Firefox</option>
<option value=”Chrome”>Chrome</option>
<option value=”Opera”>Opera</option>
</select>
</form>
</body>
</html>

OUTPUT:

Choose which browser you prefer:

DOWNLOAD SOLUTION HERE