Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check url/link before visiting?

Status
Not open for further replies.

DSP

Technical User
Dec 14, 2000
3
GB
Does anyone know of checking with javascript whether a link target (or url) exists/is valid before the user clicks it?
I was hoping that I could create a true/false function that if the url would return 404 I could take some action in the script, but haven't found a way of doing so

tia

Dave
 
I once saw a script that could do this... I found it at but the site has changed a bit since the last time I was there... try searching there! My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top