# New member here, Data Storage question

**URL:** <https://forum.kirupa.com/t/new-member-here-data-storage-question/328232>\
**Category:** web dev\
**Created:** [April 30, 2012, 7:20am UTC](https://forum.kirupa.com/t/new-member-here-data-storage-question/328232 "2012-04-30T07:20:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceerup](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@ceerup](https://forum.kirupa.com/u/ceerup)\
**Post date:** [April 30, 2012, 7:20am UTC](https://forum.kirupa.com/t/new-member-here-data-storage-question/328232/1 "2012-04-30T07:20:22Z")

</div>

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](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)”\>  
\<head\>  
\<title\>Calc\</title\>

\<script type=“text/javascript”\>

function calculate() {  
var one = document.getElementById(“one”).value_1;  
var two = document.getElementById(“two”).value_1;  
var three = document.getElementById(“three”).value_1;  
document.getElementById(“answer”).value=((one-two)/three).toFixed(2);  
;  
}  
function roundNumber(num, dec) {  
var result = Math.round(num_Math.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
