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>
<script type="text/javascript">
<!--
function fillin(formObj) {
var mytext = formObj.elements['mytext'].value;
sellength = formObj.elements['wholetext'].length;
for(var i=0; i<sellength; i++) {
if (formObj.elements['wholetext'].options[i].text.toLowerCase().indexOf(mytext.toLowerCase(),0) == 0) {
formObj.elements['wholetext'].options[i].selected = true;
break;
}
}
}
function filltext(selObj) {
document.forms['myForm'].elements['mytext'].value = selObj.options[selObj.selectedIndex].text;
}
//-->
</script>
</head>
<body>
<form name="myForm">
<input type="text" name="mytext" onkeyup="fillin(this.form);"><br />
<select name="wholetext" onchange="filltext(this);">
<option>Red</option>
<option>Red Flowers</option>
<option>Green</option>
<option>Grass</option>
</select>
</form>
</body>
</html>