Nadalvn12mo ago

Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')

Code: var bcb = new WebSocket('wss://'); bcb.onmessage = (event) => { var BCBobject = JSON.parse( document.getElementById('bcbCrypto').innerHTML = BCBobject }
2 Replies
marvinh.12mo ago
Looks like on your web page there is no element with an id of bcbCrypto . Do you see such an element in the DOM?
NDH12mo ago
Check the spelling of the id in tag. I mess that up often. Or char casing if spelling is correct.