Some times we need to put an option in our web page so that user can take a print of the content of the page like ‘Click here to Print’ button.
For printing the content we can use JavaScript so that user can print the content of the page only and the other graphics, page layout will be ignored at the time of printing.
Here is the code snippet.
Everything is done. Now any one can get a print out of the content of your web page.
Leave a Reply