Hide a Table/Text on a page and click a button and show up

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • unseendesigns
    New Member
    • Feb 2008
    • 1

    Hide a Table/Text on a page and click a button and show up

    I'm somewhat new to javascript...bu t I am curious if there is a code out there where:

    I can show part of a page and the rest of it is hidden.
    Then have two buttons.
    1. Click here to continue w/o an account
    2. Click here to create an account and continue

    When they click on either of the buttons...the rest of the page will show up/load without going to another page. And the other button will disappear.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Yes, it's possible. You can give the div that contains the hidden content an id and then display it by setting the document.getEle mentById(divID) .style.display= "block". Post your code if you get stuck.

    Comment

    Working...