In javascript window.print() will print the whole window.

Is it possible to print part of window?

For example in my html I have a button, say "print", two tables, after I click "print" I want only contents in one table printed.

I saw someone using frame to do this. My problem is that my html contains only tables.

Is there any script doing this?

Thank you for your help.