2020-08-13 09:59:44 +02:00
|
|
|
<!DOCTYPE html>
|
2020-08-13 15:03:33 +02:00
|
|
|
<html>
|
2022-10-29 11:02:08 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<title>HTML Tips and Tricks - Output</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<link
|
|
|
|
href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap"
|
|
|
|
rel="stylesheet"
|
|
|
|
/>
|
|
|
|
<link rel="stylesheet" type="text/css" media="screen" href="../main.css" />
|
|
|
|
</head>
|
2020-08-13 09:59:44 +02:00
|
|
|
|
2022-10-29 11:02:08 +02:00
|
|
|
<body>
|
|
|
|
<div class="demo">
|
|
|
|
<a href="../index.html" class="home">
|
|
|
|
<img src="../home.svg" alt="home" />
|
|
|
|
</a>
|
|
|
|
<h2>Let's see the Output</h2>
|
|
|
|
<form
|
|
|
|
oninput="x.value= (a.value && b.value) ? parseInt(a.value) * parseInt(b.value) : 0"
|
|
|
|
>
|
|
|
|
<input type="number" id="a" value="0" />
|
|
|
|
* <input type="number" id="b" value="0" /> =
|
|
|
|
<output name="x" for="a b"></output>
|
|
|
|
</form>
|
2020-08-13 09:59:44 +02:00
|
|
|
|
2022-10-29 11:02:08 +02:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<form
|
|
|
|
oninput="x.value= (a.value && b.value) ? parseInt(a.value) + parseInt(b.value) : 0"
|
|
|
|
>
|
|
|
|
<input type="number" id="a" value="0" />
|
|
|
|
+ <input type="number" id="b" value="0" /> =
|
|
|
|
<output name="x" for="a b"></output>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|