Tuesday 15 March 2011

javascript - Avoid form resubmission if page reloads -



javascript - Avoid form resubmission if page reloads -

i submitting form, contains username , password, if have entered wrong username , password gives error message "invalid username or password". if refreshing page using browsers reload button or using f5,it asks resubmit form,if pressed on go on 1 time again showing same error message,that means taking previous details is.

how avoid this?

i want hide error message if refresh page.

try this:

function submitcheck(){ if(condition==true) { homecoming true; } else { homecoming false; } }

when status fails homecoming false. stop form submitting.

javascript jquery html

No comments:

Post a Comment