0

Is there a way to save the text written in a textarea field and load it the next time the user reloads the page?

1st Apr 2021, 11:18 AM
bgcnhgfjd
bgcnhgfjd - avatar
4 Réponses
+ 1
Maxwell If you're not using something like React, then you'll have to use the browser's localStorage API. Here are some links that might help. This StackOverflow question is about an <input> but the same general approach should work for a <textarea> as well: https://stackoverflow.com/questions/38930144/keep-input-value-after-refresh-page https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
1st Apr 2021, 12:50 PM
CamelBeatsSnake
CamelBeatsSnake - avatar
+ 7
Shahid Zia Please remove your spam and use appropriate language. This is not your advertising platform. -- Janning⭐ SoloLearn Platinum Moderator
1st Apr 2021, 12:04 PM
Janning⭐
Janning⭐ - avatar