<script type="text/javascript">
document.getElementById("p1").style.display="none";
<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" />