I am looking for a javascript code to print my webpage. Then I found this one - javascript:window.print() and I used it as:
<span class = "printIt"><a href = "javascript:window.print()">PRINT</a></span>
It is functional. However, I found out that this code can't print the image displayed in my webpage. Only the html and css are printable. When I tried to use the usual way of printing and press ctrl+p both image and style (CSS) are not printable.
May you please tell me what's the problem with this?
thank you!