MDN Web Docs – window.location
host....: the host name and port number. [www.google.com]:80
hostname: the host name (without the port number or square brackets). www.google.com
MDN Web Docs – window.location
host....: the host name and port number. [www.google.com]:80
hostname: the host name (without the port number or square brackets). www.google.com