Upload
ania-neal
View
226
Download
0
Embed Size (px)
DESCRIPTION
if statements for js
Citation preview
If Statements: if.html !!
Learning Javascript
What is the weather?
Submit
document.getElementById("myButton").onclick=function() {
if (document.getElementById("weather").value=="rain") {
alert ("it's raining");
} else {
alert("it's not raining!");
}
}