I want to collect some user input, edit it and output it to the DOM. I have skeleton code that works, but after executing, the page reloads and the data added to the DOM has gone. There’s a codepen here:
Later I shall be generating html around the data the user submits.
Where am I going wrong here?
PS I am aware of security issues - this is for me to use on my own PC only, to generate index pages for a portfolio.