ASP ScriptingJava ScriptingCGI ScriptingHTMLJavaLanguage CERP Education Links

ASP SCRIPTING

Selecting Menu Item

     In the Car Picker, prospective car buyers are given a choice of a whopping three colors : Red, Blue or Green. If the user does not pulled down the menu, the helpful message "Choose a color" will be display.

<HTML>
<HEAD>
<TITLE>Selection of Menu Items </TITLE>
<SCRIPT LANGUAGE=JAVASCRIPT>
function submitIt(form)
{
colorChoice=form.color.selectedIndex
if (form.color.options[colorChoice].value == "")
{
alert("You must pick a color")
return false
}
return true
}
</SCRIPT> 
</HEAD>
<BODY BGCOLOR=WHITE>
</BODY>
</HTML>

 


Your Ad Here
Not All Of Your Subscribers Use RSS - AWeber Email Marketing
Your Ad Here