maynard444
Programmer
Does anyone know a way to reload a cookie into a text box after hitting a reset button on that form. The textbox is initially set to the value of the cookie when the page is opened. The reason I need a cookie to load the text is I am using a generic form template for data entry, there are certain areas that can be filled in automatically for different areas of operations. The problem I am having is that if the form is reset by the reset button it clears the textbox and wont reload the cookie. I understand that the form doesn't reload when the reset button is pressed, so I just need to know how I can reload the cookie when I press the reset, if it is possible.
Here is a sample of the code i am working with:
this is in the head:
<script>
var readcookie2=unescape(document.cookie);
</script>
this is in the body and form:
<input type="text" name="Confirmation">
<script>
window.Form1.Confirmation.value=readcookie2;
</script>
then i have a normal reset button:
<input type="reset" value="Reset">
Any info that you can spare would be appreciated.
Thanks,
maynard
Here is a sample of the code i am working with:
this is in the head:
<script>
var readcookie2=unescape(document.cookie);
</script>
this is in the body and form:
<input type="text" name="Confirmation">
<script>
window.Form1.Confirmation.value=readcookie2;
</script>
then i have a normal reset button:
<input type="reset" value="Reset">
Any info that you can spare would be appreciated.
Thanks,
maynard