i have a working html page (on the desktop).
It does not work in the /file folder as html with localstorage.
function xstore()
{
var wag = document.getElementById('Cust_name').value ;
window.localStorage.setItem("Cust_name",wag);
var equ = document.getElementById('Equip_Mod').value ;
localStorage.setItem("Equip_Mod",equ);
var equ_num = document.getElementById('Equip_Num').value ;
localStorage.setItem("Equip_Num",equ_num);
alert(wag);
}
function xrestore()
{
var wag = document.getElementById('Cust_name') ;
wag.value= localStorage.getItem("Cust_name");
var equ = document.getElementById('Equip_Mod');
equ.value= localStorage.getItem("Equip_Mod");
var equ_num = document.getElementById('Equip_Num') ;
equ_num.value = localStorage.getItem('Equip_Num') ;
}
is there a way to get localstorage to work with android/chrome?
It does not work in the /file folder as html with localstorage.
function xstore()
{
var wag = document.getElementById('Cust_name').value ;
window.localStorage.setItem("Cust_name",wag);
var equ = document.getElementById('Equip_Mod').value ;
localStorage.setItem("Equip_Mod",equ);
var equ_num = document.getElementById('Equip_Num').value ;
localStorage.setItem("Equip_Num",equ_num);
alert(wag);
}
function xrestore()
{
var wag = document.getElementById('Cust_name') ;
wag.value= localStorage.getItem("Cust_name");
var equ = document.getElementById('Equip_Mod');
equ.value= localStorage.getItem("Equip_Mod");
var equ_num = document.getElementById('Equip_Num') ;
equ_num.value = localStorage.getItem('Equip_Num') ;
}
is there a way to get localstorage to work with android/chrome?