"Cannot set property innerHTML' of null"
For my case, it appears if innerHTML property (span with id "thisYear") placed after the JavaScript value . so when running javascript, the script cannot found the innerHTML property and appear the error:
Just place the JavaScript coding after the innerHTML property is OK:
Fixed~
No comments :
Post a Comment