Document.location.host
"document.location.host" - это один из методов "document.location"
Подробно о "document.location.host"
Что такое document.location.host
Дадим определение : "Что такое document.location.host":
document.location.host - возвращает текущий домен без протокола с доменом первого уровня + ":" и порт.
Синтаксис document.location.host
document.location.host
Вывести на экран document.location.host
Для того, чтобы вывести на экран document.location.host вам понадобится:
Получим код document.location.host
<script> document.write ( document.location.host );</script>
И вы получите:
Теги:
hosts location
document location host
location host js