<html> <head> <mce:script type="text/javascript"><!-- function removeElement() { var tag = document.getElementById("p1"); if(tag.style.display=="none"){ tag.style.display="block" ; }else{ tag.style.display="none" ; } } // --></mce:script> </head> <body> <h1>This is a header</h1> <p id="p1">This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p> <input type="button" onclick="removeElement()" value="Do not display paragraph" /> </body> </html>