no lo entiendo
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
.....te paso de nuevo el codigo que pa ver si esta vez te va......a mi me funciona con esa linea y to......quizas es por que teniamos el title fuera del head y eso le estaba dando "dolores de cabaeza"
![sonrisota](http://static.forosdelweb.com/fdwtheme/images/smilies/xD.png)
...pero no se yo......
La verdad es que si no te funciona me doy a la bebida
Código:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript1.2">
var ventana;
function imprimir(cual){
ventana=window. open('','ventana','resizable=yes,scrollbars=auto,height=150,width=300,left=100,top=50')
with (ventana.document){
open();
write('<html>');
write('<head>');
write('<title>');
write('IMPRIMIENDO ARCHIVO SOLICITADO');
write('</title>');
write('<link rel="alternate" media="print" href="' + cual + '">');
write('</head>');
write('<body onload="window.print();self.close()">');
write('<center>');
write('IMPRIMIENDO EL ARCHIVO SOLICITADO');
write('<br><br>'); write('</center>');
write('</body>');
write('</html>');
close();
}
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a href="#" onClick="imprimir('texto1.txt');">Imprimir texto1.txt</a>
</body>
</html>
Si te va ya nos metemos con lo del netscape.......y si no.....que alguien me ponga un ron!
ToKaTa.