Hi, I needed some help with a print script.
I’m using a traditional script for this, my script is:
function imprSelec(nombre)
{
var ficha = document.getElementById(nombre);
var ventimp = window.open(’ ', ‘popimpr’);
ventimp.document.write( ficha.innerHTML );
ventimp.document.close();
ventimp.print( );
ventimp.close();
}
The thing is that when the person click on the print button, the HTML that pops up looses the style and template… is there a way o a script so this doesn’t happen?. The thing is that a need a popup because the script is suppose to print a content html and not the hole page that has a template and thing I don’t want to print…
Any help is welcome!!!.. Thanks
Miguel