Answer the question
In order to leave comments, you need to log in
Why is there an error when checking for image loading?
There is a code that checks if the images have loaded. But the error knocks out: Uncaught ReferenceError: image is not defined. Tell me what could be the reason?
Here is the code:
image.onload = function(){
alert("привет")
}
Answer the question
In order to leave comments, you need to log in
And what is image write? Or is it just a variable in a clean field? If it is a reference to an element in the DOM then show how it is initialized.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question