Value=href Text

Discussion in 'JavaScript' started by BRIAN_C_C, Sep 24, 2007.

  1. #1
    Is their a way to make the value equal the text content following it...

    here's what i need

    <a Target=_parent onClick="window.parent.form.textbox.value='get following text here'; return false" href=dining.html#city>This text becomes the value</a>

    I have an iframe with links in them that change the value of textboxes in the document containing the iframe. Instead of filling out the different value for each link, I'd like the value to retreive the text that is hyperlinked itself and use that as it's value.
     
    BRIAN_C_C, Sep 24, 2007 IP
  2. BRIAN_C_C

    BRIAN_C_C Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Guess this one was a bit hard eh... that's too bad... maybe next time I guess.

     
    BRIAN_C_C, Sep 24, 2007 IP
  3. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #3
    Or maybe you just wait for more than 3 hours.......
     
    nico_swd, Sep 24, 2007 IP
  4. BRIAN_C_C

    BRIAN_C_C Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Lol... yah... just going off the amount of views.... :)
     
    BRIAN_C_C, Sep 24, 2007 IP
  5. BRIAN_C_C

    BRIAN_C_C Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    56 views... and yea... nothing... that sucks!
     
    BRIAN_C_C, Sep 25, 2007 IP
  6. BRIAN_C_C

    BRIAN_C_C Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Must be playing halo...
     
    BRIAN_C_C, Sep 25, 2007 IP