Detect the Domain Name

  • + 0 comments

    //google.com is actually a protocol relative url, and google.com would be the domain.

    It's good to know that all accepted urls have to have an explicit protocol of http or https. I came to the comments because there didn't seem to be enough details.