JavaScript
helps you to implement this functionality using print function of window
object.
|
The
JavaScript print function window.print() will print the current web
page when executed.
You can
call this function directly using onclick event as follows:
<head>
<script
type="text/javascript">
<!--
//-->
</script>
</head>
<body>
<form>
<input
type="button" value="Print"
onclick="window.print()" />
</form>
</body>
Summary
In this article I try to expose Page printing using Javascript. I hope after reading this article you will be able to use this trick in your code. I would like to have feedback from my blog readers. Please post your feedback, question, or comments about this article.
|
No comments:
Post a Comment