Thanks xPheRe this exactly what I wanted. Precisely my issue was that I wanted to print a specific part of a page. To do so i load that content into a hidden iframe I, then, print it. That's why I want to work only on the dom content of this iframe and not on the whole window.document.
Thanks to all ;)