Changing contents by clicking on links eg: href="#tab2"

Discussion in 'Programming' started by ads2help, Jan 21, 2009.

  1. #1
    I came across a site last week and but I forgot what's the site url.

    It has a few tabs on top, each with links which looks like:

    <a href="#tab1">Tab 1</a>
    <a href="#tab2">Tab 2</a>
    <a href="#tab3">Tab 3</a>

    When I click at Tab 2, it shows tab 2 and hides tab 1 and tab 3.

    So I think it has something related to the # thing. Maybe a function that monitor the changes of #??

    I am 100% sure that the link do not have onclick="function" on them

    Something like Gmail..
    Gmail inbox is : url#inbox
    Gmail spam is : url#spam

    How can i do that? Thank you.
     
    ads2help, Jan 21, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    crivion, Jan 21, 2009 IP
    ads2help likes this.
  3. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #3
    ads2help, Jan 21, 2009 IP