joining relative urls?
<p>So i want to join strings with relative urls in Javascript.</p>

<p>base url = "http://www.adress.com/more/evenmore"</p>

<p>with</p>

<p>relative url = "../../adress" => "http://www.adress.com/adress"<br>
relative url = "../adress" => "http://www.adress.com/more/adress"</p>

<p>What would be the best way? I was thinking of using regexp and checking<br>
how many "../" i find, then subtracting that amount from the baseurl and adding them to what is left.</p>
