voilà le script :
<?
$printablePHP='hello world';
?>
<script type='text/javascript'>;
var printableJS='<? echo $printablePHP; ?>';
document.writeln(printableJS);
function impression(texte){
var pop=window.open("","","");
pop.document.open();
pop.document.writeln(texte);
pop.document.writeln("<script type='text/javascript'>");
pop.document.writeln("window.print();");
pop.document.writeln("<\/script>");
pop.document.close();}
</script>
<br /><INPUT TYPE="image" src="printer.ico" value="Print" onclick="window.location=impression(printableJS);">
<?
echo (" cliquez pour imprimer ".$printablePHP." !!!");
?>
y-a-til une fonction pour conserver la page initiale??? merci