Implementing angularJS makes handling data easier:
Check out this example for a better understanding :
http://jsfiddle.net/gioeleslfierro/s0pm6gcq/
I recommend utilizing the angular approach with $window. However, if you prefer to do it manually, here is a similar process (source) :
// Save information to sessionStorage
sessionStorage.setItem('key', 'value');
// Retrieve stored information from sessionStorage
var data = sessionStorage.getItem('key');
// Delete specific data from sessionStorage
sessionStorage.removeItem('key');
// Clear all saved data from sessionStorage
sessionStorage.clear();