Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<HTML>
<HEAD>
<TITLE>JavaScript FORM handler</TITLE>
<SCRIPT language=JavaScript>
function formAction() {
var colorName = document.myForm.myColor.value;
if(colorName=='red')
colorStr = '#FF0000';
if(colorName=='green')
colorStr = '#00FF00';
if(colorName=='blue')
colorStr = '#0000FF';
document.write("Your favorit color is <FONT COLOR=\"" + colorStr + "\">" + colorName);
}
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="myForm">
Select your favorit color
<SELECT NAME="myColor">
<OPTION VALUE="red">Red</OPTION>
<OPTION VALUE="green">Green</OPTION>
<OPTION VALUE="blue">Blue</OPTION>
</SELECT>
<INPUT onClick="formAction()" TYPE="BUTTON" VALUE="Continue ...">
</FORM>
</BODY>
</HTML>