I Got a better option,
First separate the printable and nonprintable section by class name or id
window.onafterprint = onAfterPrint;_x000D_
_x000D_
function print(){_x000D_
//hide the nonPrintable div _x000D_
}_x000D_
_x000D_
function onAfterPrint(){_x000D_
// Visible the nonPrintable div_x000D_
}
_x000D_
<input type="button" onclick="print()" value="Print"/>
_x000D_
That's all