Hello Sir/Ma’am,
I’m having some issues with my image code for JavaScript, I copied the same thing but it’s not working. Sir below is my code.
Hi @kewalramanipratham3,
Your update_image function is inside the scope of the onreadystatechange event function. Please take it out of its scope.
httpRequest.onreadystatechange=function(){
if(/*condition*/){
/*code*/
}
}
function update_image(){
/*code*/
}
Thank you sir for your response.
1 Like