I am trying to get the user input value from one page, on another page, for example, On my HTML page1 I have:-
<input type="text" id="someName" placeholder="enter name"/>
<input type="submit" id="submitBtn" value="submit">
and in the script, I have:-
let Btn = document.querySelector('#submitBtn');
Btn.onclick = function() {
let name = document.querySelector('#someName').value;
}
Now what I'm trying to do is access the name
variable (which carries the user inputted value), from other HTML pages (not the page that input was entered).
I understand that this is where database comes in to store values, but without knowledge of using db, I was wondering if there's workaround with just client-side Javascript.