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