So, I want to code a simple HTML page as an overlay for OBS and inside the page there is an input field which is editing content to an HTML element. I want to be able to save or update the entire page without right click Save As. Upon refreshing the page the edited content from the input field does not "stick"... Is it possible to add a piece of javascript and a button to save/update the entire HTML page with edited content?
This is the code I am using right now
Input field shows the typed text. Upon refreshing the page, typed content is gone. I need to update the page so the typed content is still visible upon refreshing the HTML document.
I'm not a programmer, nor do I have extensive skills so please do not reply to my question with other questions using technical terms. And please DO not post a links to other so called solutions because I've already tested 22 "solutions" and nothing worked.
Thank you.
document.getElementById("ChangeIt").addEventListener("keyup", myFunction);
function myFunction() {
var elementValue = document.getElementById("ChangeIt").value;
document.getElementById("username").innerHTML = elementValue;
}
HTML
<p><i id="username"></i></p>
<p><input id="ChangeIt" name="ChangeIt" type="text" value="" class="username"></p>
<p>Type in the box above</p>
localStorageavailable to you?