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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2006
    Posts
    186
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Anchors With URL Variables

    Hi

    I have a site that uses anchors on a page to scroll down half way to the page but when i add a Url variable like this index.php?myvar=1 and then the anchor the anchor doesnt work. Doesnt anyone know how to use URL variables with anchors?


    Thanks

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Code:
    <a href="page.php?var=foo#bottom">Jump to bottom</a>

  • #3
    Regular Coder
    Join Date
    Dec 2006
    Posts
    186
    Thanks
    17
    Thanked 0 Times in 0 Posts
    that doesnt seem to work the value loads properly but the anchor still doesnt go down.

    Thanks

  • #4
    aku
    aku is offline
    New Coder
    Join Date
    Jan 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <a href="page.php?var=foo#bottom">Jump to bottom</a>
    Code:
    <a name="bottom">here bottom content</a>


  •  

    Posting Permissions

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