Disabling a link

Discussion in 'JavaScript' started by enchance, Oct 8, 2007.

  1. #1
    How do I disable a text link using javascript? Or even just to delete the "href" of the text link so the cursor won't change to the hand icon when someone rolls over it.
     
    enchance, Oct 8, 2007 IP
  2. kkrizka

    kkrizka Peon

    Messages:
    223
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    kkrizka, Oct 8, 2007 IP
  3. enchance

    enchance Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I want to get rid of the link entirely. I'm making a simple "prev/next" set of links for my portfolio. I'm attaching it to php which will call the js to disable the "next" link once it gets to the end of the portfolio, and the "prev" link if it's the first one.

    I think what I'm looking for is a way to delete the <a></a> tag...am I right?
     
    enchance, Oct 8, 2007 IP
  4. enchance

    enchance Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I got it! Since I'm using php,I can just rewrite the links only this time without the <a></a> tags. hehe
     
    enchance, Oct 8, 2007 IP