Using console.log
I am able to see value coming from another page, but when I am placing this value using document.getElementById('abc').innerHTML = xyz.age;
it's giving me error of Uncaught TypeError: Cannot set property 'innerHTML' of null
My JS
xyz = JSON.parse(sessionStorage.getItem("details"));
document.getElementById('abc').innerHTML = xyz.age; //getting error from here
console.log(xyz.age);
Can you guyz help me out