I have a nav-tab with 3 tabs and every tab has a form with a text area. After submitting the 2nd or 3rd form when I click the browser back my text area is clear, but when I submit the form in 1st tab the text area still contains the text. I need to clear it too.
Asked
Active
Viewed 173 times
0
-
3What have you already tried? – BenM Aug 03 '18 at 09:14
-
Why would you want the browser to clear your data? What are you really trying to do? – Danon Aug 03 '18 at 09:16
-
check this article to know more about [browser back button](http://viralpatel.net/blogs/disable-back-button-browser-javascript/) – Niklesh Raut Aug 03 '18 at 09:18
-
I want that my form doesn't show any text when I click back – Ayushi Sood Aug 03 '18 at 09:19
1 Answers
1
To answer the question, you'd have to do this with JavaScript.
See: Clear all fields in a form upon going back with browser back button

Jason Grim
- 413
- 4
- 7
-
Hi, this is really just a comment or at best a link only answer. If you were to add some useful description about the problem and the solution it would become a valid answer – RiggsFolly Aug 03 '18 at 09:26
-
-