Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
var weather= prompt("Hello!Is the weather cloudy?");
if(weather=="yes"){
document.write("Remember to bring an umbrella.");
}
else{
document.write("Have a great day under the sun!");
}
sayHello();
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
var weather1 = prompt("Is it cloudy today? (Please type 'Yes' or 'No')");
if(weather1 == "Yes") {
document.write("Please remember to bring an umbrella around with you today!");
}
else {
document.write("Yay! You can go out to play!");
}
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
var weather1 = prompt("Is it cloudy today? (Please type 'Yes' or 'No')");
if(weather1 == "Yes") {
document.write("Please do remember to bring an umbrella around with you today!");
}
else {
document.write("Yay! You can go out to play!");
}
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
var urname=prompt("What is the weather sis? cloudy or sunny?");
if(urname =="cloudy"){
document.write("bring an umbrella!")
}
else{
document.write("RELAX!GO OUT AND PLAY")
}
document.write("<br><br>")
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
//Task 4A graded assignment .o.
var weather = prompt("Is the weather cloudy? Capitalise your answer as Yes/No, AND BE A GOOD USER! :D");
if(weather == "Yes"){
document.write("Bring an umbrella!");
}
else{
document.write("Go out and play!");
}
</script>
</head>
<body>
</body>
</html>