Passing script variable value to a URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jhoag
    New Member
    • Sep 2007
    • 1

    Passing script variable value to a URL

    I'm trying to pass a varaible via URL

    <a href="www.junk. org?token=mytok en>

    The problem is that mytoken gets it's value from a script
    and the above gives me just what I give it, the word mytoken

    mytoken=documen t.getElementsBy TagName("li")[17].innerHTML.spli t(";")[1];

    Is there a way of passing the value of mytoken as the parameter?

    Thanks
  • RBPierce
    New Member
    • Sep 2007
    • 7

    #2
    Can you post some code? Sounds like you should be using a form.

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5388

      #3
      heya ...

      welcome to TSDN ...

      have a look at that thread ... may be it is of some help to you ... :)

      kind regards

      Comment

      Working...