Horizon88 wrote:You could either set a stylesheet for printing in the HTML, or you could provide a Print link that takes them to a text-only version of the page, in which you simply echo out the content for the page instead of inserting it into a template or other HTML code.
CSS has a display property
.hide {display:none}
.show {display:inline}
<p class="hide">this wont show</p>
<p class="show">this will show</p>
<p>this will also be shown</p>
This is something called HTML DOM, which have a display property.
It is something with Java.
<html>
<head>
<script type="text/javascript">
function removeElement()
{
document.getElementById("hide").style.display="none";
}
</script>
</head>
<body>
<h1>Hello</h1>
<p id="hide">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>
<p id="normal">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="Hide first paragraph" />
</body>
</html>