Código
<script> function desaparecer() { document.getElementById('mi_capa').style.display = 'none'; } </script>
Código
<body onload="setTimeout('desaparecer()', 1000)"> <div class='mi_capa' id='mi_capa' style='z-index:99999; position:fixed; top: 0; left: 0; overflow:visible; width:100%; height:100%; background: #F4F8F9;'> <div style='width:600px; height:400px; position:absolute; top:50%; left:50%; margin-left:-300px; margin-top:-200px; padding:100px 30px 0px 0px; color:#000000; font-size:20px; line-height:20px; text-align:center;'> <form action="validar-password.php" method="post"> Escribe una clave: <input type=password name="clave"> <input type="submit" value="Enviar"> </form>
lo que quiero es que cuando pulse el botón, se ejecute la acion del body onload sin nesecidad de que sea con el tiempo, es decier que cuando pulse el boton, el body me carge, llevo muchi tiempo intentando por no he podido por que en el form hay una action y no se que ponerle para que el body onload se ejecute.
Gracias por su ayuda
Mod: Obligatorio el uso de etiquetas GeSHi.