repl.it
HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
index.html
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
27
28
29
<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">
	<title>repl.it</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div>
        <h1>Let's Compare Two Numbers!</h1>
        <p>Which is larger?</p>
        <form name="form">
          <input type="text" name="inp1" id="inp1">
          <p> or </p>
          <input type="text" name="inp2" id="inp2">
          <br>
          <br>
          <button type="button" onclick="maxHigh(inp1.value,inp2.value)">Hey what</button>
          <br>
          <br>
          <p id="anslol"></p>
        </form>
    </div>
    <script src="script.js"></script>
  </body>
</html>
result
console