ScriptUser Posted October 8, 2014 Share Posted October 8, 2014 Hi all, everyone knows that DOM manipulation using javascript is not permanent; the changes will be undone after the page reloads. I would like to make permanent changes to the markup of a page using javascript. I understand that there are plugins out there that can do what I am wanting to do. However, I want to save changes to my markups dynamically through code. If you know of a way to dynamically save changes to the DOM element using javascript, please share your knowledge. Thanks in advance for your help. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 8, 2014 Share Posted October 8, 2014 Like you said, Javascript can't do that. You'll need to send whatever changes to the server using something like ajax so that a language like PHP can save them in a database or something similar. Likewise, when the page is created you should use something like PHP to get the content from the database to build the page dynamically. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now