Validate URL
Skip Navigation Links.

Validate URL

Skip Navigation LinksHome :: Javascript :: Validate URL

Javascript functions can validate correctly formed URLs. Here is a javascript function to ensure user input from form fields on your web pages. Attach it to the onchange event or insert it in a handler.

This function is interesting in that it makes heavy use of regular expressions for pattern matching.

Enter a string that is not a URL and press test

Copy and paste the javascript code in the text box below into a script block on your web page



Next >> Links
top of page
all content ©1996/2012 BennySutton.com
all images © their respective owners This site uses Thumbshots previews