im tryng to print my page with below code, but actually navigation bar is included in the file to print i just want to know hot to print page without header or navigation bar.
<script language="JavaScript" type="text/javascript">
//<![CDATA[
if (window.print) {
document
.write('<form> '
+ '<input type=button name=print class="btn btn-info" value="Print" '
+ 'onClick="javascript:window.print()"> <\/form>');
}
// End -->
//]]>
</script>