im creating an app for android and iOS
i want the user to be able to exit the app and come back and whatever they typed in the boxes will be there when they come back
lets say i have this code for example
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<title>Calc</title>
<script type=“text/javascript”>
function calculate() {
var one = document.getElementById(“one”).value1;
var two = document.getElementById(“two”).value1;
var three = document.getElementById(“three”).value1;
document.getElementById(“answer”).value=((one-two)/three).toFixed(2);
;
}
function roundNumber(num, dec) {
var result = Math.round(numMath.pow(10,dec))/Math.pow(10,dec);
return result;
}
</script>
</head>
<body>
box 1
<br>
<br><input type=“text” id=“one” /><hr>box 2<br><br><input type=“text” id=“two” /><br><br><hr>box 3<br><br><input type=“text” id=“three” /><br><br><button onclick=“calculate();”>Calculate</button> <br id=“result”></center></br> Total <input type=“text” readonly=“readonly” id=“answer” /><br><br></center>
</body>
</html>
where would i set an html 5 storage or cookie, im new to this kind of stuff, its a different language to me…please if anyone can help me youd be a life saver! ive been trying to figure this out for 3 days