<!DOCTYPE html>
<html>
<body>
<p id="pid">Text text text</p>
<input type="button" value="Hide"
onclick="document.getElementById('pid').style.visibility='hidden'">
<input type="button" value="Show"
onclick="document.getElementById('pid').style.visibility='visible'">
</body>
</html>