JavaScript - Get URL typed by the user

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Is there a way (via JavaScript) to get the URL the user came to your site from?

My client has three domains, but only one web space (I hate having to work with what the client sets-up Smiling ), the page needs to take a seperate action according to what URL the user typed to get to the site.

Thanks in advance!

a Padded Cell our articles site!

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

document.referrer

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Cheers Suzanne! Laughing out loud

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.