Article From:https://www.cnblogs.com/sea-stream/p/9968634.html

 

console.log(window.location.host)

console.log(document.domain)

console.log(window.location.href)

console.log(window.domain)

 

Address bar:

 

 

Output:

Leave a Reply

Your email address will not be published. Required fields are marked *