Estoy tratando de guardar el botón que crea el usuario, cuando se actualiza el navegador. Lo que significa que quiero que permanezca allí de forma permanente.
Aquí hay un fragmento de lo que estoy hablando:
function create(){ const a = document.createElement("button") document.body.appendChild(a) const b = document.getElementById("buttoname") a.innerHTML = b.value } <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>Create a button</h1> Button name:<input id="buttoname" type="text"><br> <button onclick="create()">Create Button</button> </body> </html>