+ 2

cannot read property context of null

when I was using getContext("2d") for canvas in HTML. it says cannot read property context of null

13th May 2020, 3:53 PM
Venkadesh. A
Venkadesh. A - avatar
3 Respuestas
+ 2
Do this in your code : window.onload = function() { // all javascript code goes here }
13th May 2020, 4:02 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 3
Please add your code too so that I can solve the issue :))
13th May 2020, 3:55 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 3
thanks bro u saved my life
13th May 2020, 4:06 PM
Venkadesh. A
Venkadesh. A - avatar