Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/12/2016, 08:53
Avatar de ArturoGallegos
ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 2 meses
Puntos: 1146
Respuesta: FireFox no me redirije despues de imprimir

Código Javascript:
Ver original
  1. function imprimir(){
  2.         var content = document.getElementById('contenido').innerHTML;
  3.  
  4.         var mywindow = window.open('', 'PRINT', 'height=400,width=600');
  5.  
  6.         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>');
  7.         mywindow.document.write('</head><body >');
  8.         mywindow.document.write(content);
  9.         mywindow.document.write('</body></html>');
  10.  
  11.  
  12.         mywindow.document.close(); // necessary for IE >= 10
  13.         mywindow.focus(); // necessary for IE >= 10*/
  14.  
  15.         mywindow.print();
  16.         mywindow.close();
  17.  
  18.         window.location = "http://google.com";
  19.  
  20.         window.location = "http://google.com";
  21.  
  22.         return true;
  23.       }

Última edición por ArturoGallegos; 23/12/2016 a las 09:12