Reply To: Print Button

Home Forums Quform WordPress Print Button Reply To: Print Button


I had already work on something about it.

1) Create a html button.
<button class=”btn-default” type=”button” onclick=”printDiv(‘areaImprimir’);”>Imprimir</button>
2) Create a function in JS
function printDiv(nombreDiv) {
var contenido= document.getElementById(nombreDiv).innerHTML;
var contenidoOriginal= document.body.innerHTML;
document.body.innerHTML = contenido;
document.body.innerHTML = contenidoOriginal;
It must be customize to specific need but the main idea is that.

Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy