Dear all,

Could I get the absolute url of a relative url placed in an input form?

Example:

Input text = "www.elmundo.es"
absolute url = EL MUNDO - Diario online líder de información en español

Input text = "w3guy.com/relative-absolute-url-guide/"
absolute url = https://w3guy.com/relative-absolute-url-guide/

There are dozens of solutions to get absolute url from a relative url palce on address bar (the url of the open page), but not from an input form.

Could someone help me to find this solution?

Thanks