Join
the community
Sign-up
Ask a question »

Javascript - Creating a popup

May 2013


[Javascript]Creating a popup




Issue


How to create a pop-up that open when opening a page?

Solution


Simply use the following code:

SCRIPT LANGUAGE="JavaScript"> 
window.open("Your Website"); 
</SCRIPT> 


Note that pop-ups are usually blocked by browsers and is practice is not appreciated by many.

See also

Knowledge communities.

Crear una ventana emergente (popup) con Javascript
Crear una ventana emergente (popup) con Javascript
By Carlos-vialfa on April 29, 2010
Javascript - Créer une popup
Javascript - Créer une popup
By Jeff on October 29, 2009
Javascript - Criar uma popup
Javascript - Criar uma popup
By ninha25 on April 28, 2010
Original article published by Jeff. Translated by jak58. - Latest update by jad05
This document entitled « Javascript - Creating a popup » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.
Receive our newsletter

health.kioskea.net

Having a Menu in a combo list format
Ajax: communication between JavaScript and Perl scripting