javascript session url or cookies url

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manu1980
    New Member
    • Jan 2008
    • 1

    javascript session url or cookies url

    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.getEle mentbyid("theli nk")= 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
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    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

    Comment

    Working...