Basic JS Home

 

<html>

<body>

<h2>My First JavaScript</h2>

<button type="button"

onclick="document.getElementById('demo').innerHTML = Date()">

Click Now display Date and Time.</button>

<p id="demo"></p>

</body>

</html>


Basic JS Home





Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.