I want to do following. After the user submits the information from the form and goes on the second page, if clicks BACK button on the IE, I want to reload form, so the boxes won't have the values previously entered.
<html>
<head>
<Script language="Javascript">
function clearAll() {
var curInput=document.getElementById("UserName"
curInput.value="";
curInput=document.getElementById("UserAge"
curInput.value="";
}
</script>
</Head>
<Body onload="clearAll();">
<form ID="Form1">
<input id="UserName" type="text" value="this won't be shown" NAME="name"/>
<input id="UserAge" type="text" value="this neither will be shown" NAME="name"/>
</form>
</body>
</html>
Water is not bad as long as it stays out human body ;-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.