0
Use the method print
of the object window
.
window.print()
If you want to link to the click of a button would look like this:
<input type="button" name="imprimir" value="Imprimir" onclick="window.print();">
0
1
Use the method print
of the object window
.
window.print()
If you want to link to the click of a button would look like this:
<input type="button" name="imprimir" value="Imprimir" onclick="window.print();">
Browser other questions tagged javascript internet-explorer
You are not signed in. Login or sign up in order to post.
I used, but then it already opens the window for printing, I wanted to open this pre preview before, if possible.
– Gislane
It would have an example link?
– Darlei Fernando Zillmer
No, just going by right click on IE, there is the option to pre preview. But from what I researched here it seems that there is no way. But thank you so much!
– Gislane
In other browsers like Chrome for example this function opens the print screen, but the file opens beside to preview, I do not know how other browsers behave
– Darlei Fernando Zillmer