1. Computing & Technology

Discuss in my forum

Jennifer Kyrnin

Show and Hide Blocks of Text with DHTML

By , About.com GuideOctober 15, 2007

Follow me on:

There are many uses of the ability to show and hide blocks of content on your Web pages. In fact, this is what makes most Web pages look and act more like applications - the content only appears when the reader asks for it. And the advantage of this method is that it only uses around 4 lines of JavaScript and 2 lines of CSS. Plus, the content appears and disappears when you click the links - toggling it on and off. Once you've seen this simple technique, you can apply it to your Web pages to create dynamic applications that load exactly what the reader is looking for exactly when they want it.
Comments
No comments yet.  Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>
Related Searches dhtml

©2012 About.com. All rights reserved.

A part of The New York Times Company.