Use our online JavaScript Show & Hide generator to create a JS code snippet that will show and hide block of contents. A toggle button is used to show or hide a block of content that is usually encloded in a DIV block. Our online tool will generate the HTML code, CSS code and Javascript snippets necessary to toggle a block of content to show or hide.