javacript getHTTPURL

JavaScript
var currentUrl = window.location.href;
Source

Also in JavaScript: