href "#" whith base

Discussion in 'PHP' started by avukadomusic, Apr 28, 2010.

  1. #1
    this is a small problem
    I always had a link in the website to go bak to the top of the page
    href: "#"
    but now I put base at the <head>
    so the link goes to that address
     
    avukadomusic, Apr 28, 2010 IP
  2. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #2
    What if you place an actual anchor at the top of the page and point to that ?

    <a name="top"></a>
    
    <a href="#top">Top</a>
    Code (markup):
     
    joebert, Apr 28, 2010 IP
  3. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #3
    With javascript:

    <a href="javascript:scroll(0,0)">Top</a>
    Code (markup):
     
    danx10, Apr 28, 2010 IP
  4. avukadomusic

    avukadomusic Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    js did it
    thanks
     
    avukadomusic, Apr 29, 2010 IP