Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
Outlook
/
Fusion
:
code04.html
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<!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>