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.
<form name="myform">
<p><textarea id="textarea1"></textarea></p>
<p><textarea id="textarea2"></textarea></p>
<p><textarea id="textarea3"></textarea></p>
<p><input name="submit" type="submit" value="submit" /></p>
</form>
<form name="myform" [b]onsubmit="return checkTextAreas();"[/b]>
<p><textarea id="textarea1"></textarea></p>
<p><textarea id="textarea2"></textarea></p>
<p><textarea id="textarea3"></textarea></p>
<p><input name="submit" type="submit" value="submit" /></p>
</form>
<script type="text/javascript">
function checkTextAreas()
{
[indent]var txtArea1 = document.getElementById('textarea1');[/indent]
[indent]var txtArea2 = document.getElementById('textarea2');[/indent]
[indent]var txtArea3 = document.getElementById('textarea3');[/indent]
[indent]if(txtArea1.value=='' && txtArea2.value=='' && txtArea3.value=='')[/indent]
[indent]{[/indent]
[indent][/indent][indent]alert("Error!: At least 1 textarea must be filled in!");[/indent]
[indent][/indent][indent]return false;[/indent]
[indent]}[/indent]
[indent]else[/indent]
[indent]{[/indent]
[indent]return true;[/indent]
[indent]}[/indent]
}
</script>