can somebody help me in writing a code that checks a website for the presence of an image.
For example, If an image A.jpeg is used in a web page, then the java script file should check for the presence of the image. If not, it must return error message.
I wrote the code like this:
Can some experts guide me in solving this?
Thanks in advance..
Waiting for replies...
For example, If an image A.jpeg is used in a web page, then the java script file should check for the presence of the image. If not, it must return error message.
I wrote the code like this:
Code:
<SCRIPT language="JavaScript">
if (A.gif)
{
window.location="http://www.google.com";
}
}
else
alert("There is no match");
</SCRIPT>
Can some experts guide me in solving this?
Thanks in advance..
Waiting for replies...
Comment