how to print the part of window using java script

i know how to print the whole window.

But i wanna print parts of window.