This should be simple for a javascript guru out there. Could someone please show me how to show the value of a textbox when a button is pressed? I'm trying the following... and I think I'm almost there. Thx in advance, Bill
<script language="JavaScript">
function passwordReminder(strName){
if (confirm("An email will be sent to your email account on file." +"\nClick OK to continue and get your password!")){
window.location="index.cfm?reminder=" +escape(strName)+"";
}
}
</script>
<form action="index.cfm" method="post" name="loginform">
<input class="txtmen2" type="text" name="username" size="20">
<input name="Forgot" type="button" class="txtmen2" value="Forgot" onClick="reminder('test')">
</form>
<script language="JavaScript">
function passwordReminder(strName){
if (confirm("An email will be sent to your email account on file." +"\nClick OK to continue and get your password!")){
window.location="index.cfm?reminder=" +escape(strName)+"";
}
}
</script>
<form action="index.cfm" method="post" name="loginform">
<input class="txtmen2" type="text" name="username" size="20">
<input name="Forgot" type="button" class="txtmen2" value="Forgot" onClick="reminder('test')">
</form>