Hi All,

I am working on a form for a client which allows people to suggest a web page by inputting a link in a form field. I want to use Javascript to validate that the link is valid when the user submits the form but I'm no JS coder (just about getting to grasps with PHP!). I have searched round the usual sites (in the Javascript Resource Websites thread) and I cannot find any snippets to validate web links. Hundreds for validating email addresses but none for links. Could anyone suggest a quick bit of Javascript? Or any advice for me whilst I blunder my way through some JS pattern matching tutorials?

I could do it through PHP but I would prefer this time to check when the user tries to submit the form and an alert to appear when the link is invalid.

Thanks,

Appy