Getabsoluteurl () JavaScript JS Funkcje W3School

var getAbsoluteUrl = (function() {var a;return function(url) {if(!a) a = document.createElement('a');a.href = url;return a.href;};})();// UsagegetAbsoluteUrl('/something'); //
Nasty Narwhal