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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Clear the Credit Card # from a form when BACK button is pressed

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0


Hi,

How can I make the credit card # dissapear from a form when the user clicks on his BACK button?

Thanks!
 
Just clear the value with this each time the page loads:

function clearCC(){
document.formName.elementName.value = '';
}

<body onLoad=&quot;clearCC();&quot;>

where formName is the name of your form, and elementName is the name of the text box that holds the credit card information.

hope it helps :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top