Código Javascript
:
Ver originalfunction imprimir(){
var content = document.getElementById('contenido').innerHTML;
var mywindow = window.open('', 'PRINT', 'height=400,width=600');
mywindow.document.write('<html><head><title>Demo</title><style>body{font:15px/1.5 arial,verdana,tahoma;text-align:center;}h1{text-transform: uppercase;font-size:20px;}</style>');
mywindow.document.write('</head><body >');
mywindow.document.write(content);
mywindow.document.write('</body></html>');
mywindow.document.close(); // necessary for IE >= 10
mywindow.focus(); // necessary for IE >= 10*/
mywindow.print();
mywindow.close();
window.location = "http://google.com";
window.location = "http://google.com";
return true;
}