Miscellaneous

See also CSS & Scripts Custom Form Buttons

Image as reset

<a href="#null" onclick="document.FormName.reset()"><img src="pic.gif"></a>

Hide scrollbars in textarea

Include style="overflow:hidden" in the opening tag

Redirect

To load another page once the submit button has been pressed include:

method="GET" ACTION="yourpage.htm" in the opening from tag

Form Elements

formname.elements[elementname].value

Reset onload

onload=document.forms['formName'].reset()


Confirm file to upload

To confirm that the file you are uploading is correct you can an alert to the "Browse" button

File to send:

<form name="upload">File to send:

<input type="file" name="myfile" onchange="alert('You have chosen to send:\n\n ' + document.upload.myfile.value)">

</form>