Friday, May 1, 2009

[jQuery] Re: extract base url

ok so you wanna edit the URL ?

var url = "www.google.co.za";
top.location = url;

this will send the page to www.google.co.za

var url  top.location;

this shoud retrieve the URL

Sorry. I'm unable to fully answer your question at this time.

On Fri, May 1, 2009 at 10:17 PM, buntu <buntu.work@gmail.com> wrote:

Hi,

I need to append a parameter string like: '?key=val' to the current
url and the value for the key changes based on the user input. Is
there any jquery utility that does the base url extraction from
window.location, so that I can append the '?key=val' to that?


Thanks for the help!

No comments: