SyntaxFix
Write A Post
Hire A Developer
Questions
host
var url = window.location.host;
returns localhost:2679
localhost:2679
hostname
var url = window.location.hostname;
returns localhost
localhost