Jump to content

element which stay "forever"


Matej

Recommended Posts

Hi , how can i create for example element (using plain javascripit) which stays on page after refresh (basicly "forever") , i know its possible using AngularJs , but angular is just javascript library so it should be possible with plain javascript too. I cant find any answer/tutorial , thanks for answers

Link to comment
Share on other sites

where did it "go" in the first place? are you referring to something added dynamically after page load? Not sure why you think Angular can do it. It sounds like you need to actually explain where the element comes from in the first place.

Link to comment
Share on other sites

Any permanent changes to a page need to happen on the server, not Javascript. The best you can do with Javascript is have some code to always add the element to the page when the page loads, but if that code changes then that also needs to happen on the server.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...