Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/04/2002, 22:06
Avatar de Kaopectate
Kaopectate
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 22 años, 4 meses
Puntos: 38
Re: Preguntilla Facil Sobre Ventanas Secundarias

Hay un pequeño detalle que olvidé añadir...

Código:
<html>
 <head>
  <script languaje="JavaScript">

   var nPop = 0;

   function nuevaVentana(){
    var oPop = window.open();
    oPop.document.open();
    oPop.document.write("<html>");
    oPop.document.write("<head>");
    oPop.document.write("</head>");
    oPop.document.write("<body onload='javascript:window.moveTo(" + nPop + "," + nPop + "); window.resizeTo(100, 100)'>");
    oPop.document.write("</body>");
    oPop.document.write("</html>");
    oPop.document.close();
    nPop += 50;
   }
  </script>
 </head>
 <body>
  <form name="formulario">
   <input type="button" name="boton" onclick="nuevaVentana()" value="Nuevo PopUp">
  </form>
 </body>
</html>
Saludos.