---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# URL.hostname

The **`hostname`** property of the `URL` interface
is a string containing the domain name of the URL.

## Value

A string.
