Prev Demo
JavaScript
>
Javascript Statement
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Statement - Getting element by Id</h1> <p id="myId"></p> <script> document.getElementById("myId").innerHTML = "TechFunda"; </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output