Uncaught Typeerror: cannot read property ‘innerHTML’ of null
The ‘status’ element does not exist in your webpage. So document.getElementById(“status”) return null. While you can not use innerHTML property of NULL. You should add a condition like this: