html - Mozilla Firefox form values reset on history.back -
i'm writing php script. i've got form uses post method , action page. if error occurs, show message on target page, , let user go via link triggers history.back();
javascript function. user clicks link , turns page includes form , values entered user should remain in inputs.
they stay on chrome, lost in firefox. there way keep dom information on major browsers using history, or way use cache session, cookies, etc. ?
you could, , know it's annoying, capture post data , turn session variables, repopulate input fields on browser back.
alternatively, can submit form iframe , process, or use ajax process , depending on result, trigger new page load or not.
Comments
Post a Comment