0

what is Unable to get property 'style' of undefined or null reference error and why am i getting it often

I am creating a game but whenever I try to use the document.getElementById("top_left").style (top_left is an id for a table cell) I get this error "Unable to get property 'style' of undefined or null reference"

27th May 2017, 3:51 PM
_Retr0/-
_Retr0/- - avatar
3 Respuestas
+ 16
onload = function() { //code }; //make sure html loads first...
27th May 2017, 4:12 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
it worked
27th May 2017, 4:52 PM
_Retr0/-
_Retr0/- - avatar
0
alright I will try
27th May 2017, 4:12 PM
_Retr0/-
_Retr0/- - avatar