Get an Absolute URL with JavaScript

added by JavaScript Kicks
3/26/2015 4:07:03 PM

274 Views

Dealing with URL formats can be a real nightmare. Think of how just a few characters can effect a URL's absolute endpoint: Advertisement starting or not starting with / starting with // starting with ? starting with # ...and so on What if you want an absolute URL though? One that starts with http or https? You can actually use an A element to get that absolute URL!


0 comments