|
At least I think this will be a simple question for you Javascript masters.
I'm setting up a form on a friend's site that, using javascript, will send the form data to an email address.
Can someone please tell me where it is I add the email address to have the data sent to?
Below is the javascript function, followed by the HTML referencing the javascript.
Thanks in advance for any help!
function Enviar_onclick(){
if ((document.getElementById("nombre").value.length != 0)&&
((document.getElementById("telefono").value.length != 0)||
(document.getElementById("email").value.length != 0) ))
{
document.forms["Formulario"].submit();
}
else{
alert("Es obligatorio introducir el nombre y el número de teléfono o dirección de e-mail.");
}
}
----------
<INPUT TYPE="Button" class="Boton" VALUE="Enviar" onClick="Enviar_onclick()">
|