Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts

    href for <a> tag using concatenation

    Hi ,

    I want to change the href for all the <a> tags once the page has full loaded.
    Is there any way to do it.

    Or can I set href for <a> using concatenation using CSS

    Regards
    Manjeet

  • #2
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    What is the purpose of this? I'm not sure exactly what you mean. Is there going to be some event that will require the links to change or?

  • #3
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,316
    Thanks
    29
    Thanked 279 Times in 273 Posts
    CSS isn’t capable of changing the value of an HTML attribute, however, you could use JavaScript to iterate through all of the document’s anchor elements.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •