Is it possible to print the page to where the link is directed? I have many short information on one site. I would like to print whole article by clicking on the link that is on the first site. Every link has an unique id. Thanks for answers.
Share
No. There is a
window.printmethod that opens browser’s print window, but for obvious security reasons you can’t tell it what exactly to print from JavaScript.You still can somehow retrieve this page server-side and serve it along with call to
window.print, but this would have obvious drawbacks too.