https://tutorial.eyehunts.com/js/url-validation-in-javascript-example-code/
URL validation in JavaScript | Example code