HTML-Javascript How to validate a Url or link field ?
Collecting Website Address of a person or a company is very common.We have to validate urls to make sure we can reach them on those addresses.
JAVASCRIPT REGULAR EXPRESSION FOR VALIDATING URLS
isValidUrl(url) returns true if url is a valid url and please note that ip addresses,urls with our protocols are considered as invalid
Live demo of Url Validation function used with an HTML Form input - https://www.thewebblinders.in/demos/javscript-html-url-validation.html
Use comments section for any queries.