Monthly Archives: April 2018

Java Script Code

<!DOCTYPE html> <html> <body> <h2>JavaScript Statements</h2> Type any Number Here<input type=”text” id=”aaa”> <input type=”button” value=”Click here” onClick=”rrr()”> <script> function rrr(){ var btbt=document.getElementById(“aaa”).value; document.getElementById(“dddd”).innerHTML=btbt; } </script> <p id=”dddd”>This is empty</p> </body> </html>   RESULT JavaScript Statements Type any Number Here This is empty