Hi, Let's say if I have a page with header, footer, left menu, right menu and center portion. How do I print only the center portion using javascript? I know one way of doing it is to use frames but I don't want that. Is there a way like printing a certain TABLE or DIV using javascript? Thanks
I believe if you use the css style property: display:block; it'll not be printed. So apart from the portion you want to get printed, make others display blocked.....Cheers
What you would have to do is create a function which does this for every div that you do NOT want printed: document.getElementById('DIV_NAME').style.display = 'none'; Code (markup): And then run document.print(); Code (markup): Jason
you can print particular div or table using javascript. see here http://www.techtricky.com/print-part-of-page-javascript/