# Javascript Show and Hide

**URL:** <https://forum.kirupa.com/t/javascript-show-and-hide/161484>\
**Category:** web dev\
**Created:** [September 4, 2005, 2:01pm UTC](https://forum.kirupa.com/t/javascript-show-and-hide/161484 "2005-09-04T14:01:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlashman](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Phlashman](https://forum.kirupa.com/u/Phlashman)\
**Post date:** [September 4, 2005, 2:01pm UTC](https://forum.kirupa.com/t/javascript-show-and-hide/161484/1 "2005-09-04T14:01:15Z")

</div>

Hi! I’m just wondering how to show and hide a table using Javascript. For instance, I want to have a link show a table, and then have a link hide a table. The main problem I have, is that I don’t know how to erase the HTML code for the table after I add it.

Thanks for the help!
