Popups exist from really ancient times. The initial idea was to show another content without closing the main window. As of now, there are other ways to do that: we can load content dynamically with fetch and show it in a dynamically generated <div>. So, popups is not something we use everyday.
The difference is that Firefox treats a timeout of 2000ms or less are acceptable, but after it – removes the “trust”, assuming that now it’s “outside of the user action”. So the first one is blocked, and the second one is not.
A name of the new window. Each window has a window.name, and here we can specify which window to use for the popup. If there’s already a window with such name – the given URL opens in it, otherwise a new window is opened.
Here most “window features” are disabled and window is positioned offscreen. Run it and see what really happens. Most browsers “fix” odd things like zero width/height and offscreen left/top. For instance, Chrome open such a window with full width/height, so that it occupies the full screen.
La mayoría de los navegadores web incluyen una función para bloquear las ventanas emergentes. Aunque esto puede eliminar las ventanas emergentes no deseadas o molestas, la característica a veces puede impedir la funcionalidad de sitios web legítimos o útiles.
Algunos sitios web populares afiliados a Penn que requieren ventanas emergentes incluyen U@Penn y el Directorio de Penn Online.Siga las siguientes instrucciones para configurar su navegador web para permitir las ventanas emergentes para sus sitios web seleccionados.
Cuando un sitio web intente lanzar una nueva ventana emergente, es posible que aparezcan cuadros de diálogo alertando de las ventanas emergentes que han sido bloqueadas. Siga las siguientes instrucciones para permitir las ventanas emergentes en cada sitio web.
Popups exist from really ancient times. The initial idea was to show another content without closing the main window. As of now, there are other ways to do that: we can load content dynamically with fetch and show it in a dynamically generated <div>. So, popups is not something we use everyday.
The difference is that Firefox treats a timeout of 2000ms or less are acceptable, but after it – removes the “trust”, assuming that now it’s “outside of the user action”. So the first one is blocked, and the second one is not.
A name of the new window. Each window has a window.name, and here we can specify which window to use for the popup. If there’s already a window with such name – the given URL opens in it, otherwise a new window is opened.
Here most “window features” are disabled and window is positioned offscreen. Run it and see what really happens. Most browsers “fix” odd things like zero width/height and offscreen left/top. For instance, Chrome open such a window with full width/height, so that it occupies the full screen.
Artículo AccionesWindow.open()El método open() de la interfaz Window carga un recurso especificado en un contexto de navegación nuevo o existente (es decir, una pestaña, una ventana o un iframe) con un nombre especificado.Sintaxisopen()
Una cadena, sin espacios en blanco, que especifica el nombre del contexto de navegación en el que se está cargando el recurso. Si el nombre no identifica un contexto existente, se crea un nuevo contexto y se le da el nombre especificado. También se pueden utilizar las palabras clave especiales de destino, _self, _blank, _parent y _top.
Una cadena que contiene una lista separada por comas de las características de la ventana en la forma name=value – o para las características booleanas, sólo name. Estas características incluyen opciones como el tamaño y la posición por defecto de la ventana, si se abre o no una ventana emergente mínima, etc. Se admiten las siguientes opciones:
Si esta característica está activada, solicita que se utilice una ventana emergente mínima. Las características de la interfaz de usuario incluidas en la ventana emergente serán decididas automáticamente por el navegador, incluyendo generalmente sólo una barra de direcciones.