5
I’m using self.print()
to call print and this opens the option to print the page I am on. However, I would like that before calling the impression could go to another page through the href
... All this by clicking the word "Print out".
That’s possible?
My HTML
<tr>
<td width="60"><a id="meulink" href="index.php?content=fones-uteis&action=update&id=<?=$uteis['id'];?>">Imprimir</a></td>
<td width="60"><a href="index.php?content=fones-uteis&action=update&id=<?=$uteis['id'];?>">Editar</a></td>
<td width="60"><a href="index.php?content=fones-uteis&action=delete&id=<?=$uteis['id'];?>" onclick="return confirmDelete();">Excluir</a></td>
</tr>
If you change page the script stops running and the
self.print()
will not be run.– Sergio
And which of the two pages you want to print?
– bfavaretto
The page that will "appear" after clicking on "Print".
– Fernanda Ferreira
This printing word is in what type of element?
<button>
,<a>
or another?– Sergio
Is in an <a element>.
– Fernanda Ferreira