How to uncheck a checkbox
I am sure this must a very old question, but I cannot find the answer. I have a form where I want the address box to appear if the user ticks the checkbox called "Please send a catalogue". The form is at
The relevant code has the comment immediately above it <!--Please send catalogue-->
Near the bottom of the page is address.style.display = 'none'; which makes the address box invisible to start with.
My problem starts if the user clicks Refresh. The address box disappears once more but the checkbox stays checked. This is overcome by adding at the bottom catalogue.checked = ''; so that the checkbox is set back to unchecked on refreshing. Catalogue is the name of the checkbox. This works in Firefox, Opera and Netscape, BUT not in IE7, which says that there is an error: catalogue is undefined.
Can someone suggest to me how to get Internet Explorer to do the same as the others please?