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>
<script type="text/javascript">
<!--//
function clearForm() {
var el;
var elements = document.this_form.getElementsByTagName('input');
for ( var i = 0, el; el = elements.item(i++); ) {
if (el.getAttribute('type') == "text") {
el.value = "";
}
}
}
//-->
</script>
<body onLoad="clearForm()">
<form name="this_form">
Field 1: <input type="text" name="field1"><br>
Field 2: <input type="text" name="field1"><br>
Field 3: <input type="text" name="field1">
</form>
</body>
</html>
In Firefox forms fields maintain the data on reload by default.does <input type="text" name="field" value=""> not work?