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:
Expand|Select|Wrap|Line Numbers
- <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...