Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CokraMehinka's avatar

How to refresh a page and keep changed variables?

If I change something in a website that I have no control over using Ins. element, when i refresh obviously will reload the page the same pre-changed.

What thing can I add to the code https://echat.date in Inspect in https://e-chats.com/omegle order to refresh and still show the page with changed variables?

Looking for help. Thank you.

0 likes
3 replies
Sinnbeck's avatar

Be sure to send the data to the backend and store in database or session. Or you can even store it clientside in localStorage

salamaslam.official's avatar

You can use local storage for your form, during the input you can use oninput method to store forms values, and as you refresh your page fetch this data back to your form fields

deansatch's avatar

It sounds like you are talking about making js changes in chrome dev tools and persisting them? If so...

  • inspect the page you are working with
  • Click on the sources tab
  • Near the top left there is an "Overrides" sub-tab. Click that and then check 'enable local overrides'

Now if you edit the file in the pane to the right by adding in your js or html and cmd+s to save, it will save a local copy of the file and use this on page refreshes until you uncheck the 'enable local overrides' box

Please or to participate in this conversation.