0
When runned on safari,âgetElementByIdâ canât work.
How can I solve this? :(
6 Answers
+ 3
This is an error that occurs in Safari when you read a property or call a method on a null object. ... One way this error might occur in a real world example is if you try using a DOM element in your JavaScript before the element is loaded.
Can you post your code so I can have a look?
+ 2
I take it you have fixed it now? Working fine for me. If not, try wrapping your JS in the window.onload function or <script> tags đ
+ 2
You're welcome, bud
0
Error massage is like this.
TypeError: null is not an object (evaluating 'something.style')
Line: 37
0
https://code.sololearn.com/WOzNsPaDYMUg/?ref=app
this is it,s URL.
thanks a lot.
0
by using <script> tag, it worked well.
Thank you very much!!