html3

Título a la página

<script LANGUAGE="JavaScript">


var txt="ACA VA EL TÍTULO";


var espera=30;


var refresco=null;


function rotulo_title() {


        document.title=txt;


        txt=txt.substring(1,txt.length)+txt.charAt ;


        refresco=setTimeout("",espera);}


rotulo_title();


    </script>


REDIRECCIONAR PAGINA

<script>location='URL DE LA PAGINA WEB'</script>

ABRIR WEN EN POP UP

<script language='JavaScript'>window.open('http://www.tuweb.com', 'geoflotante', '');</script>

Abrir web en Pop-up

<script language='JavaScript'>window.open('http://www.tuweb.com', 'geoflotante', '');</script>

Recomendar página

<form name="eMailer">
ENVÍA ESTA PÁGINA A UN AMIGO
<br>
Indica su e-mail:
<br>
<input type="text" name="address" size="25">
<br>
<input type="button" value="Recomendá esta Web!" onClick="mailThisUrl();">
</form>
<script language="JavaScript1.2">
var good;
function checkEmailAddress(field) {
// the following expression must be all on one line...
var goodEmail = field.value.match(/b(^(S+@).+((.com)|(.net)|
(.edu)|(.mil)|(.gov)|(.org)|(..{2,2}))$)b/gi);
if (goodEmail){
good = true
} else {
alert('Por favor introduce un e-mail valido')
field.focus()
field.select()
good = false
}
}
u = window.location;
m = "Pienso que te puede interesar esta página...";
function mailThisUrl(){
good = false
checkEmailAddress(document.eMailer.address)
if (good){
// the following expression must be all on one line...
window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;
}
}
</script>




Mensaje de alerta al intentar copiar

<Script language=JavaScript>
function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert("ACA TU MENSAJE DE ALERTA.");
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("ACA TU MENSAJE DE ALERTA.");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
</script>

<<atras siguiente>>
Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
Registrarse gratis