This is a little sloppy, but do you mean something like this?

var url = window.location.href.split('/');
url.pop();
url.push(relativePath);
return url.join('/');

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of oliver
Sent: Sunday, October 12, 2008 10:48 AM
To: jQuery (English)
Subject: [jQuery] Covert relative url to absolute url


Hi,

Is there a method available that will allow me to convert the
reltative url to absolute url?

Thanks!

Reply via email to