Click Here!

Wednesday, 24 August 2016

Date & Time Showing on HTML and JavaScript


 For Display Date & Time

<html>
<body>

<h1>For Showing Date and Time</h1>
<p id="demo"></p>

<button
onclick="document.getElementById('demo').innerHTML = Date()">
Click me to display Date and Time.</button>


</body>
</html> 





This code is belong to show the date and time on web page after clicking the button name is "Click me to display Date and Time."

No comments :

Post a Comment