Category Archives: JS

Getting started with HTML and JS

<!DOCTYPE html> <html> <head> <title>Hi ,This is my page</title> </head> <body> <h1> <p id=”tempid”> This is a paragraph</p> <br> <a href=”http://mentorez.com/”&gt; Click on Mentorez </a> </h1> <button type=”button” onclick=’document.getElementById(“tempid”).innerHTML = “Hello JavaScript”‘> Click Me</button> </body> </html>

Posted in HTML, JS, Uncategorized | Leave a comment