Is there an equivalent of "window.print()" in JavaScript for printing individual elements out of a whole page?

For example:

Whole page: window.print
Individual Element: document.getElementById('element').print...

I don't want to print a whole page, just an individual element.
3 answers 3