I have a simple form with a text input field, for example asking for a Name. The javascript on the page is:
var fullName = document.getElementById('fullName').value
and then add to the localStorage using:
localStorage.setItem('fullName', fullName);
when I run this in my browser and type localStorage
on the same tab, i get my input returned, however if i run localStorage
on a different tab, the stored data is not showing up. Am I doing something wrong? thanks in advance