usmivkata wrote:In joomla based websites I do not think it is possible to add additional css file, so I have to add java script directly into the code.
You can use @media print {body{ display:none;}} to specify your print-only rule in a <style></style> section in your page. Some browsers are less compatible with this approach, but all modern browsers should be fine.