Semester 3 pog

This commit is contained in:
2023-08-16 17:31:33 -05:00
parent 2dc89a3b93
commit a33c99cbd2
1558 changed files with 439 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<html>
<head>
<title>Example 3.1</title>
<script>
function getTemp()
{
var temp = prompt("What's the temperature today?", "degrees Fahrenheit");
if (temp < 32)
{
document.write("<p>It may snow today!</p>");
}
}
</script>
</<head>
<body>
<h1>What's the Weather?</h1>
<h3>Click the button! </h3>
<p><input type="button" id="temperature" value="What is today's temperature?" onclick="getTemp();" /></p>
</body>
</html>