Categories
How To Article Javascript

How to show date on Html page with javascript

Here a sample code is present to show date on your html page. This is helpful for users who don’t know javascript. Code:- <html> <body> <h1>Hightechnology</h1> <p id=”hightech”>Hi</p> <script type=”text/javascript”> document.getElementById(“hightech”).innerHTML=Date(); </script> </body> </html>