Webmaster2020 home

Click Here!


Home / code

Show and hide part of a page

Writer: Christophe Wolfs
Published: 22 April 2008

With this little script you can show and hide part of a webpage.
This can be very handy to put a lot of information on a screen without overloading it with data.

If you put multiple parts on one page name_of_the_part must be different for every part.
If you want it to show when you load the page, change :
<DIV ID="name_of_the_part" style="display=none>
to
<DIV ID="name_of_the_part" style="display=block>

 

TOP