start . me .
Directory path . code , coding .

HTML Document File : je-2.html

<!doctype html>
<html lang="en">

<head>
<title>JavaScript Editor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>

<body onload="$('#page').append(localStorage.html)">

<div style="display: none;" id="editor">
<button onclick="localStorage.html=document.all.editor_html.innerText;location.reload()">save and reload</button>
<br>
<div id="editor_html" contenteditable="true" style="border: 1px solid black;padding: 0px;"></div>
</div>

<div id="page"><button onclick="document.all.editor_html.innerText=localStorage.html;document.all.editor.style.display='initial'">edit</button></div>

</body>
</html>