In order to print the HTML page, the format links are used:
<a href="javascript:(print());"> Распечатать купон</a> I need a different document (jpg or html) to be printed in the slider on all pages by clicking on the link
Распечатать ...">
In order to print the HTML page, the format links are used:
<a href="javascript:(print());"> Распечатать купон</a> I need a different document (jpg or html) to be printed in the slider on all pages by clicking on the link
If you want to print some information that is accessible from the current page, this is done as follows:
1. Create a new window with js.
2. We form the content that we want to print. Well, that is, your js script should prepare some kind of document for printing.
3. We write content in this window.
4. Call the print method for this new window.
Pseudocode:
var windowForPrint = window.open(), yourInformation = '';// Сюда что мы хотим печатать. windowForPrint.document.write(yourInformation); windowForPrint.print(); Source: https://ru.stackoverflow.com/questions/534015/
All Articles