Show HTML literally

<!DOCTYPE html>
<html>
<body>

<h1>My First JavaScript</h1>
<p>Click the button to display the current day, date, and time.</p>
<p id="demo"></p>

<button type="button" onclick="myFunction()">Try it</button>

<script>
function myFunction()
{
document.getElementById("demo").innerHTML = Date();
}
</script>

</body>
</html> 

Comments

This comment has been removed by the author.

Popular posts from this blog

एक पल का क्रोध आपका भविष्य बिगाड सकता है एक पल का क्रोध आपका भविष्य बिगाड सकता है एक पल का क्रोध आपका भविष्य बिगाड सकता है एक पल का क्रोध आपका भविष्य बिगाड सकता है एक पल का क्रोध आपका भविष्य बिगाड सकता है

check formats