From HTML
<HTML>
<BODY>
Any text here
<!-- BEGIN_MARKER REPORT_TITLE="Report Title" REPORT_AUTHOR="SKON L."-->
Report body here
Bababa...
<!-- END_MARKER REPORT_FOOTER="Copyright xxx"-->
<a img="Button.gif" OnClick="PrintThisPage()">
Any text can be placed here.
</BODY>
</HTML>
I'm looking for javascript to do following things:
- When user click print button, javaScript popup another html document.
- In the poped up document the format should look like this
Title: Report Title
Author: SKON L.
Report body here
Bababa...
Footer: Copyright xxx
- It would be greate if poped up page, can show something like
"Printing request" rather than showing report.
- Report Title, author and footer will be populated from TAG
- Report body is HTML text, which is between BEGIN/END MARKER.
- Then, Automatically fire this page to printer.
- This must be work on IE, Netscape and FireFox atleast.
Note: I don't have JavaScript Knowledge. Please write me the complete
code. So, I can just copy/paste and change some value.
Regards,
Skon L |