Follow the syntax below to get the hostname. var url = new URL("www.sample.com"); var hostname = url.hostname;. Here we access the hostname ...
確定! 回上一頁