Tag Archives: url parameters

How To Get The Domain From A URL Using JavaScript

| Created: August 29th, 2011
JavaScript Development 10 Comments

I’m sure this is a common problem: getting the domain or host name from a URL using JavaScript. There are certainly many solutions to this problem out there. However, the solutions I found weren’t robust enough for my needs, so I ended up writing my own.
Continue reading