Creating Embedded Tabs with HTML

Discussion in 'HTML & Website Design' started by TJ1234, Aug 12, 2009.

  1. #1
    So here's the situation, I am trying to create a page that will have tabs along the top and when you click the tab the content will change. I'm pretty new at this but I've been able to piece together some code that works. But now I need to be able to pull in the information from another page that will be displayed when you click the tab.
    Right now this is the code I'm using to display the content when you click a tab:
    function f1() {document.getElementById("contenttab").firstChild.nodeValue="Test";}

    What I want to know is if there is a way to basically change test to a page reference. Something along the lines of:
    function f1() {document.getElementById("contenttab").firstChild.nodeValue=href="tab.html";}

    But of course this doesn't work. Any help would be appreciated. Thanks.
     
    TJ1234, Aug 12, 2009 IP
  2. hkhera

    hkhera Peon

    Messages:
    118
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Greeting..

    i hv been working on javascript dynamic webpage for like what you want...
    i can make that for you for only $20.

    Thanks
     
    hkhera, Aug 13, 2009 IP
  3. TJ1234

    TJ1234 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm not looking to pay for this. I just want to know if I'm heading down the right path with what I'm trying to do.
     
    TJ1234, Aug 13, 2009 IP