Hi
I have a user form that sends info to a database this all works well but when i click the browsers BACK button the info they wrote into the text boxes is still there.

Is there anyway of clearing these boxes on the click of the submit button?

(sorry this is for asp.net)

Probably, you could use a javascript code to change that.

Find out a way to detect if the page has been re-visited (form page) using the back button (javascript:history.back() ) and set to clear all entries of the form, if true.

Probably, you could use a javascript code to change that.

Find out a way to detect if the page has been re-visited (form page) using the back button (javascript:history.back() ) and set to clear all entries of the form, if true.

I tried that but it seems to want to be an onclick type of thing to a button

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.