edit html in browser and save it code example Example: how to edit web pages like a document using console document.body.contentEditable=true