I have created a perl/cgi script that loads into an iframe on my webpage, displaying text taken from a mysql database. As the form for input of data into the database is on the page that holds the iframe, the text sticks in the fields after the submit button is pressed.
If anyone would help me, I'd be really grateful.
The code I am trying to use is:
<script language="JavaScript">
<!--
function clear(elmtRef,formRef) {
formRef.name = "";
formRef.message = "";
}
//-->
</script>
<input type="submit" name="post" border="0" onClick="clear(this,this.form );">
Best regards,
jollekox
If anyone would help me, I'd be really grateful.
The code I am trying to use is:
<script language="JavaScript">
<!--
function clear(elmtRef,formRef) {
formRef.name = "";
formRef.message = "";
}
//-->
</script>
<input type="submit" name="post" border="0" onClick="clear(this,this.form );">
Best regards,
jollekox