faqts : Computers : Programming : Languages : JavaScript : Links

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 12 people (67%) answered Yes
Recently 4 of 7 people (57%) answered Yes

Entry

How can I determine if a link points to a valid URL?

Feb 17th, 2001 07:02
Martin Honnen, Randy Simon,


With client side JavaScript there is no possibility to check whether a 
link points to a valid url or not unless it is an imgage you want to 
check:
http://www.faqts.com/knowledge-base/view.phtml/aid/1799/fid/122/lang/
Otherwise you would need to call into Java in NN4 or use an Actixe X 
for IE5 to check a link and even then you could only check links on the 
same server the script is loaded from unless your java code is 
trusted/signed. See
  http://www.faqts.com/knowledge_base/view.phtml/aid/7747/fid/189
for an attempt at a solution.