View Full Version : CODE for loading a new URL after 10 seconds (using dreamweaver)

02-24-2007, 03:47 AM

I'm using dreamweaver and I'm looking for a script code for after sending a form (after submitting it), after 10 seconds the page jumps to an new URL.

Can you give me a hand on this???

:eek: :thumbsup:

02-24-2007, 04:37 AM
do u have PHP at ur disposal... i can help u with that with the sleep command

02-24-2007, 04:44 AM
sorry i dont....

I sorted this code out:

it works fine with a simple page, but how can I change it that it happends after a form is validated and sbmitted?

<script type="text/javascript">
function delayer(){
window.location = "../javascriptredirect.php"
<body onLoad="setTimeout('delayer()', 5000)">

insted of doing this in the body, where do I have to put it, to happend this after a form is validated and submitted? This is what I have right now about the form:

<form action="mailto:press@avilajet.com"
method="post" name="form1"
onSubmit="MM_validateForm('Apelido/Nome','','R','Tel Trabalho','','R','Telem&oacute;vel','','R','E-mail','','R','Morada','','R','localidade1','','R','Titulo meio','','R','Morada meio','','R','localidade2','','R');
return document.MM_returnValue">