I have created a basic HTML page and placed a print button at the bottom which prints the profile of the candidate which is being shown on the page. The problem is it prints the button as well as all the menus on the side and the footer. What should I do to print only the Candidate Profile. This the function I call on clicking on print button.
<script>
function printbill() {
window.print();
}
</script>