In this JavaScript program, you will learn how to display date and time in JavaScript. Display date and time in your webpage in JavaScript program.
//Display Date and Time in JavaScript<!DOCTYPE html>
<html>
<body>
<h1>My First JavaScript</h1>
<button type="button"
onclick="document.getElementById('clock').innerHTML = Date()">
Click Here to Display Date and Time.</button>
<p id="clock"></p>
</body>
</html>
The output of the program:
When you run this program in your browser, you can see that.
| Display Date and Time |
When you click the option, Click Here to Display Date and Time, you can see that the default date and time in your computer.
| display date and time in javascript |
2 Comments
41634F53C1
ReplyDeletesms onay
Oyun İndirme Siteleri
Telafili Takipçi
Takipçi Fiyatları
Organik Takipçi
7803AE2C1F
ReplyDeletekiralık hacker
hacker arıyorum
kiralık hacker
hacker arıyorum
belek