Abrir una ventana emergente al pulsar el boton submit de un formulario html.
<form action="blablá" method="post" target="ventanita" onsubmit="ventanita=window.open('','ventanita','wi dth=300,height=300')">
Propiedades de window.open
<form action="blablá" method="post" target="ventanita" onsubmit="ventanita=window.open('','ventanita','wi dth=300,height=300')">
Propiedades de window.open
Syntax
window.open(URL,name,specs,replace)
Parameter | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
URL | Optional. Specifies the URL of the page to open. If no URL is specified, a new window with about:blank is opened | ||||||||||||||||||||||||||||
name | Optional. Specifies the target attribute or the name of the window. The following values are supported:
| ||||||||||||||||||||||||||||
specs | Optional. A comma-separated list of items. The following values are supported:
| ||||||||||||||||||||||||||||
replace | Optional.Specifies whether the URL creates a new entry or replaces the current entry in the history list. The following values are supported:
|
No hay comentarios:
Publicar un comentario