Acepto los terminos

   Este es un javascript para que pongan sus terminos y al aceptarlos se le lleve a alguna pagina.

Ejemplo:


Acepto los términos

Codigo:


<script>
var checkobj
function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}
function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Por favor, lea y acepta los términos ")
return false
}
}
}
</script>
<form onSubmit="return defaultagree(this)" name="agreeform">
<textarea>
AQUÍ VAN LOS TÉRMINOS
</textarea>   
<br />
<input type="checkbox" onClick="agreesubmit(this)" name="agreecheck" />Acepto los términos<br />
<a href="URL DE LA PÁGINA"><input type="submit" disabled="" value="Enviar"/></a>
</form>


Modifiquen:

+ AQUÍ VAN LOS TÉRMINOS - Escribe aquí los términos y condiciones de tu servicio. Lo que irá en la textarea y lo que el usuario deba leer y aceptar.
+ URL DE LA PÁGINA - Escribe aquí la url de la página hacia donde se dirigirá al presionar el botón de Enviar.
Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
Registrarse gratis