Ejemplos en Javascript
Mensaje a la salida en ventana independiente
<HTML>
<HEAD>
<TITLE>Ejemplos Javascript: ejemplo prÃ?Æ?Ã?¡ctico </TITLE>
</HEAD>
<BODY bgcolor="white" onunload="byebyewin()">
<SCRIPT LANGUAGE="JavaScript">
<!----- Script copyright Ã?â??Ã?© 1997 S.Chris Brown (Spikeman) http://www.geocities.com/BourbonStreet/3843-->
/********************************************************
** S.Christopher Brown's (Spikeman)'s **
** java script bye bye window **
** copyright Ã?â??Ã?© 1997 S.Chris Brown (Spikeman) **
** spikeman@myself.com **
** http://www.geocities.com/BourbonStreet/3843 **
** All Rights Reserved **
** You can freely use this script, if this credit is **
** included in the source. This Script is for **
** noncommercial use only. and has been placed in **
** The public domain and no fees can be charged in **
** conjunction with distribution or use. **
** Thank you **
********************************************************/
// This JavaScript code Originally by S.Chris Brown (Spikeman) 1997 ( http://www.geocities.com/BourbonStreet/3843 )
// in the document.writeln you can write anything i happen to put image banners
// for my site in the script but you can change that to read anything.
// this goodbye window was made so when someone was leaving your site it would
// give you a "popup window" saying bye . with the setTimeout it will time
// out and close the window. i have it set to 20000 BUT you can change that
// i set it that high so the images would have time to load.
// make sure it is on UNLOAD so when it is leaving your page it will turn on
// and not before ... IF you are going to be adding some document.writeln 's
// make sure it sayz windowLeaving.document.writeln so it knows its to the
// window leaving and not the main window.
function byebyewin(){
windowLeaving=window.open("",'Leaving','toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=1,width=420,height=250');
windowLeaving.document.writeln("<head><title>Goodbye!</title></head><body bgcolor='black' text=white>");
windowLeaving.document.writeln("<h2><center>Hasta pronto</h2> ");
windowLeaving.document.writeln("<h4>Vuelve a visitarnos</h4> ");
windowLeaving.document.writeln('<h3><center>y bla bla bla bla bla </center></h3> ');
windowLeaving.document.writeln('</a>');
windowLeaving.setTimeout("self.close()",8000);
}
//----------End Of Spikeman Bye bye Window----->
</SCRIPT>
</body>
</html>
<HEAD>
<TITLE>Ejemplos Javascript: ejemplo prÃ?Æ?Ã?¡ctico </TITLE>
</HEAD>
<BODY bgcolor="white" onunload="byebyewin()">
<SCRIPT LANGUAGE="JavaScript">
<!----- Script copyright Ã?â??Ã?© 1997 S.Chris Brown (Spikeman) http://www.geocities.com/BourbonStreet/3843-->
/********************************************************
** S.Christopher Brown's (Spikeman)'s **
** java script bye bye window **
** copyright Ã?â??Ã?© 1997 S.Chris Brown (Spikeman) **
** spikeman@myself.com **
** http://www.geocities.com/BourbonStreet/3843 **
** All Rights Reserved **
** You can freely use this script, if this credit is **
** included in the source. This Script is for **
** noncommercial use only. and has been placed in **
** The public domain and no fees can be charged in **
** conjunction with distribution or use. **
** Thank you **
********************************************************/
// This JavaScript code Originally by S.Chris Brown (Spikeman) 1997 ( http://www.geocities.com/BourbonStreet/3843 )
// in the document.writeln you can write anything i happen to put image banners
// for my site in the script but you can change that to read anything.
// this goodbye window was made so when someone was leaving your site it would
// give you a "popup window" saying bye . with the setTimeout it will time
// out and close the window. i have it set to 20000 BUT you can change that
// i set it that high so the images would have time to load.
// make sure it is on UNLOAD so when it is leaving your page it will turn on
// and not before ... IF you are going to be adding some document.writeln 's
// make sure it sayz windowLeaving.document.writeln so it knows its to the
// window leaving and not the main window.
function byebyewin(){
windowLeaving=window.open("",'Leaving','toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=1,width=420,height=250');
windowLeaving.document.writeln("<head><title>Goodbye!</title></head><body bgcolor='black' text=white>");
windowLeaving.document.writeln("<h2><center>Hasta pronto</h2> ");
windowLeaving.document.writeln("<h4>Vuelve a visitarnos</h4> ");
windowLeaving.document.writeln('<h3><center>y bla bla bla bla bla </center></h3> ');
windowLeaving.document.writeln('</a>');
windowLeaving.setTimeout("self.close()",8000);
}
//----------End Of Spikeman Bye bye Window----->
</SCRIPT>
</body>
</html>
Ventanas
- Mensaje de aviso a la entrada
- Ventana independiente
- Ventana de mensaje
- Mensajes de alerta en secuencia
- Mensaje de alerta del formulario "radio"
- Nueva ventana desde enlace de imagen
- Mensaje de aviso a la salida
- Mensaje a la salida en ventana independiente
- Apertura de dos ventanas
- Editor de textos
- Editor para ventanas independientes
- Ley de Murphy
- Ventana independiente "fija"
- Ventana independiente y enlace
- Mensaje y enlace