Clicking print button will raise the print popup window from the
browser. That's the general behavior. I can not find a perfect
resolution for your answer, but try following script, you will be able
to customize for need. This works for IE but not other
Uncomment the sup print() procedure before executing.