D
Deno

help

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

NNadalvn7/20/2023
Code: var bcb = new WebSocket('wss://stream.binance.com:9443/ws/bnbusdt@trade'); bcb.onmessage = (event) => { var BCBobject = JSON.parse(event.data) document.getElementById('bcbCrypto').innerHTML = BCBobject }
Mmarvinh.7/20/2023
Looks like on your web page there is no element with an id of bcbCrypto . Do you see such an element in the DOM?
ABAltair 680b7/20/2023
Check the spelling of the id in tag. I mess that up often. Or char casing if spelling is correct.

Looking for more? Join the community!