HowToPrintContentsFromCertainDIV_printSpecificDiv2 #js #VS
function printSpecificDiv(divID) {
var divElements = document.getElementById(divID).innerHTML;
var wholePage = document.body.innerHTML;
document.body.innerHTML = "<html><head><title></title></head><body>"
+ divElements + "</body>";
window.print();
document.body.innerHTML = wholePage;
return false;
}