I have 2 option of getting a particular webpage to be printed. 1 way is automatically and the other way is letting the user click on a button to print.
I don't want to use automaticallly since I want to let the user view the page before printing it.
So, I'm considering using the following script for manual print button
Code:
<SCRIPT LANGUAGE=JavaScript>
<!-- Begin
if (window.print) {
document.write('<form>Do not forget to '
+ '<input type=button name=print value="Print" '
+ 'onClick="javascript:window.print()"> this page!</form>');
}
// End -->
</script>
The question I have is that, will the print button show up on the printed page?
If not, is there a way for me to program a webpage using either html or jsp to print information from another page?