By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,573 Members | 938 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,573 IT Pros & Developers. It's quick & easy.

javascript session url or cookies url

P: 1
Hi

I want to save the current page url to a variable if there is a certain id on the page.
then on another page of the site i want to attach that url stored in that variable to a link on the page.

document.getElementbyid("thelink")= varholdingUrl;

i can do the last bit but i just never used cookies or sessions before.

i am open to any other ideas you guys/girls my have.

thanks
Jan 4 '08 #1
Share this Question
Share on Google+
1 Reply


iam_clint
Expert 100+
P: 1,208
I hate to just link ya offsite but I think you are wanting todo cookies and heres a link on how to use cookies in javascript - http://www.quirksmode.org/js/cookies.html
Jan 4 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.