An Example of Common Use of Javascript

The following video shows and example which involves the use of Javascript to expand or collapse text.  This technique is often used to reveal or hide details when presenting information. Video Length: 7:52  Click here to download the source code.


The resulting web page displays as shown on the left below, and after the user clicks the “+” link for the first and third blocks, it appears as shown on the right.

Screen Shot 2014-08-20 at 1.19.16 PM