Discussion Locked

Script for checking LINK .

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
in Html file I write a link,
For example ( Pic )
but there is n't this file in my computer .
And when I click this link I see the page ,show This file is not there.
Now I want check this ,
Means ( When the link is not work or the file is not there I send the user another page )
For Example When the user click the link and the link not work , user see another page
(like document.write("ACCESS Denied"); )

--------
thanks,
S.M.ALavi

4 replies

by ann777

Generally links are to .HTML files, and the image is contained within the link.

is the coding for an image.

is the coding for a link.

This discussion is closed to new replies.