-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
26 lines (26 loc) · 829 Bytes
/
script.js
File metadata and controls
26 lines (26 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function Enviar(){
var nome = document.getElementById("nomeid")
var tel = document.getElementById("telid")
var email = document.getElementById("emailid")
var text = document.getElementById("textid")
console.log(nome.value)
console.log(tel.value)
console.log(email.value)
console.log(text.value)
if(nome.value == ""){
alert("Preencha seu nome!")
}
else if(tel.value == ""){
alert("Preencha seu telefone para contato!")
}
else if(email.value == ""){
alert("Preencha seu email!")
}
else if(text.value == ""){
alert("Preencha a descrição do projeto!")
}
else{
alert("Obrigado " + nome.value + ", sua mensagem foi encaminhada com sucesso e será respondida em até 24 horas.")
//window.location.reload(false)
}
}