Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/05/2011, 09:42
dukeblass
 
Fecha de Ingreso: mayo-2011
Mensajes: 171
Antigüedad: 13 años
Puntos: 32
Respuesta: Cerrar ventana en Internet Explorer

1.- IE9 si es una maravilla
2.- a mi me funciona de maravilla hasta en IE10

modifique a esto -> quite el alert, y el onload prueba que tenias, y me abre bien y cierra
Código .:
Ver original
  1. <html>
  2.   <head>
  3.     <title>Tutorial JavaScript</title>
  4.     <script type="text/javascript">
  5.  
  6.         var miVentana;
  7.  
  8.         function abrir() {
  9.             miVentana = window.open("http://google.es/","ventana1","height=500,width=700,left=300,location=yes,menubar=no,resizable=no,scrollbars=yes,status=no,titlebar=yes,top=300" );
  10.         }
  11.  
  12.         function cerrar() {
  13.             miVentana.close();
  14.         }
  15.     </script>
  16.   </head>
  17.  
  18.   <body>
  19.  
  20.     <input type="button" value="Pulsa para abrir la ventana" onclick="abrir()" />
  21.     <input type="button" value="Pulsa para cerrar la ventana" onclick="cerrar()" />
  22.  
  23.   </body>
  24. </html>