changing link HREF

How do I make code that changes the actual link?

I'm guessing you use but I'm not familiar with that.
[hr]
[blue]Visual Basic[/blue]
~[b]Andy;-)[/b]~[italic]SuperJoe30:-([/italic]~
My Website:
http://www.geocties.com/joesarcade :-(
[red]JavaScript[/red]
[hr]

Comments

  • : How do I make code that changes the actual link?

    You mean dynamically with Javascript?
    You need to add an ID attribute to your link, then change it doing something like
    [code]
    document.getElementById('linkid').href="http://my_new_link.com";
    [/code]

    [b][italic]Philip Patrick[/italic][/b]
    [b]Home page[/b]: http://www.stpworks.com
    [size=1][italic]"Two beer or not two beer?"[/italic] [b]Shakesbeer[/b][/size]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion