code for Printing a single element in the page

Jordan6

New member
Jul 3, 2011
119
0
0
I would like to print a single element in a page without the other elements.
For example, the page has: Header, leftnav, rightnav, image, footer.
I only need to print the image.

I need help with the code, both CSS and html or JS.

Thanks
 


Alternatively, you can redirect the user to a page where only the needed image appears and give the printing command, then redirect him back to where he previously was.

The coding might be a bit tricky but it's not impossible. Also, it's just an idea.