File "code04.html"

Full Path: /home/analogde/www/Outlook/Fusion/code04.html
File size: 787 bytes
MIME-type: text/html
Charset: utf-8

<!DOCTYPE html>
<html>
<body>

<!--
<h2>Using The id Attribute in JavaScript</h2>
<p>JavaScript can access an element with a specified id by using the getElementById() method:</p>

<h1 id="myHeader">Hello World!</h1>
<button onclick="displayResult()">Change text</button>

<script>
function displayResult() 
{
  document.getElementById("myHeader").innerHTML = "Have a nice day!";
}
</script>

-->

<label>Title</label><br />
<input id="myinput421" type="text" value="Computer Literacy">

<!--
name=" columntwo<?php echo $i;?>"
-->

<br/><br/>
<button onclick="show();">Show input value</button>

<script>
  function show() {
    let input = document.getElementById("myinput421");
    alert("Value = " + input.value);
  }
</script>

</body>
</html>