Foros del Web » Programando para Internet » Javascript »

Abrir Ventanas

Estas en el tema de Abrir Ventanas en el foro de Javascript en Foros del Web. Hola a todos! Me preguntaba como se podría hacer para que al abrir una nueva ventana con el window.open, le pudiese decir ademas de las ...
  #1 (permalink)  
Antiguo 05/07/2002, 07:36
 
Fecha de Ingreso: junio-2002
Mensajes: 58
Antigüedad: 21 años, 10 meses
Puntos: 0
Abrir Ventanas

Hola a todos! Me preguntaba como se podría hacer para que al abrir una nueva ventana con el window.open, le pudiese decir ademas de las dimensiones , la posición y tal, que se abriese maximizada. Es esto posible? Si alguien lo sabe que me lo diga please.
Gracias y un saludo.

<center><font face="verdana" color=#003366 size="1">One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.[/CODE]</center>
  #2 (permalink)  
Antiguo 05/07/2002, 09:01
Avatar de akela  
Fecha de Ingreso: septiembre-2000
Ubicación: Frente a la compu
Mensajes: 660
Antigüedad: 23 años, 7 meses
Puntos: 2
Re: Abrir Ventanas

&lt;!--
function popUp(URL) {
window.open(URL, '&quot; Ventana&quot;', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=320,height=240');&quot;);
}
// --&gt;
&lt;body&gt;

para abrir tu ventana:
&lt;A HREF=&quot;javascript:popUp('tu-pagina.htm')&quot;&gt;Abrir Ventana &lt;/A&gt;
  #3 (permalink)  
Antiguo 08/07/2002, 02:07
 
Fecha de Ingreso: junio-2002
Mensajes: 58
Antigüedad: 21 años, 10 meses
Puntos: 0
Re: Abrir Ventanas

si, eso ya lo sabía hacer, lo que quiero es abrir esa ventana y que se abra maximizada... alguien sabe como hacerlo? graciasssss

<center><font face="verdana" color=#003366 size="1">One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.[/CODE]</center>
  #4 (permalink)  
Antiguo 08/07/2002, 05:57
 
Fecha de Ingreso: febrero-2002
Mensajes: 80
Antigüedad: 22 años, 2 meses
Puntos: 0
Re: Abrir Ventanas

Prueba este código, y con algunos cambios puede que des con lo que buscas. De todas formas el efecto es muy guapo. :P

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;script language=&quot;Javascript&quot;&gt;
function expandir() {
for(x = 0; x &lt; 50; x++) {
window.moveTo(screen.availWidth * -(x - 50) / 100, screen.availHeight * -(x - 50) / 100);
window.resizeTo(screen.availWidth * x / 50, screen.availHeight * x / 50);
}
window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot;&gt;
&lt;a href=&quot;http://www.terra.es&quot; onClick=&quot;expandir();&quot;&gt;Abre ventana&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
:-p
  #5 (permalink)  
Antiguo 08/07/2002, 06:03
 
Fecha de Ingreso: febrero-2002
Mensajes: 80
Antigüedad: 22 años, 2 meses
Puntos: 0
Re: Abrir Ventanas

En definitiva, lo que tu quieres es esto.

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;script language=&quot;Javascript&quot;&gt;
function expandir() {
var direccion=&quot;http://www.terra.es&quot;;
adWin = window.open(&quot;&quot;,'Datos','toolbar=no,locat ion=no,status=no,menubar=no,scrollbars=no,resizabl e=no');
adWin.resizeTo(screen.availWidth, screen.availHeight);
adWin.moveTo(0,0);
adWin.location=direccion;
adWin.focus();
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot;&gt;
&lt;a href=&quot;http://www.terra.es&quot; onClick=&quot;expandir();&quot;&gt;Abre ventana&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;

Saludos. :)
  #6 (permalink)  
Antiguo 08/07/2002, 09:32
 
Fecha de Ingreso: junio-2002
Mensajes: 58
Antigüedad: 21 años, 10 meses
Puntos: 0
Re: Abrir Ventanas

muchas gracias tio, justo lo que necesitaba
un saludete

<center><font face="verdana" color=#003366 size="1">One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.[/CODE]</center>
  #7 (permalink)  
Antiguo 10/07/2002, 18:14
Avatar de maestro  
Fecha de Ingreso: febrero-2002
Ubicación: España
Mensajes: 2.364
Antigüedad: 22 años, 2 meses
Puntos: 1
Re: Abrir Ventanas

Colocamos esto en el BODY

&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
open('http://www.expansionweb.net/visitas.htm', 'Sizewindow', 'width=300,height=350,scrollbars=no,toolbar=no')
&lt;/SCRIPT&gt;

Jose Maria Fernandez
[email protected]
Http://www.expansionweb.net
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:20.