kcwallace
Centurion
I need to write code that will, for example, clear a textbox but not reload the page. It is my understanding that you need to use Javascript for this. If so, how?
<script type="text/javascript">
function ClearTextbox() {
myTextBox.value = ""; // Clear the textbox, where myTextBox is the name
}
</script>
<input type="text" name="myTextBox" />
<input type="button" value="Clear" onClick="javascript:ClearTextBox()" />
<input type="text" name="myTextBox" />
<input type="button" value="Clear"
onClick="javascript:document.all.myTextBox.value=''" />