<script>
//you'd crud    
    
function Insertdata(){
     var expense = document.getElementById('expense').value
    var currdata = localStorage.getItem('expense');
    currdata = '|'
    if (currdata.indexOf('|' + expense + '|') == -1){    
    localStorage.setItem('expense',currdata + '|' + expense + '|');
    }
}

function Updatedata(){
    
}  
    
function Deletedata(){
    
}       
    
function Displaydata(){
    document.getElementById('display').innerHTML = localStorage.getItem('expense');
}       
        
    

</script>

<body onload="Displaydata()"></body>
<span id="display"></span>

<input type="text" id="expense" onblur="Insertdata()">