Andrew Andrew - 5 months ago 19
Javascript Question

HTML - Change a value on a web page

Okay so here is a question I have looked online for a lot but I am not too sure which terminology can be used. I am wondering if I can make a simple html website which has a piece of text on it which any user can change. However, when this text/variable is changed I want it to stay like that and display like this for all users.

Sorry for not being too specific but I am not too sure what else to say.

Thanks :)

Answer

Look at something like https://github.com/justjohn/editor5. This uses contenteditable and like someone else said, you'll need something server side and somewhere to persist it (this uses PHP and Redis, respectively). Good luck with your internet abuse engine!