Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resetting form information

Status
Not open for further replies.

JackD4ME

Programmer
Jun 4, 2002
228
US
I have an asp form that is being reused. After I log out and return to the page there is no parameter being sent but it is still loading from the last form info. Is there a way to clear this after the form loads?

Jack :D
 
You could use javascrip and call the form reset method like this:

Code:
<html>
<head>
<title>Test</title>
<script language="Javascript">
function clearform()
	{
	document.test.reset()
	}
</script>
</head>
<body onload='clearform();'>

<form name="test">
<input type="text" value=""> 
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top