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>
<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>
Labels: @label1, @label2, its a label!@#$%^&*()_1234567890-={}[]:";'<>?./

2 Comments:
This comment has been removed by the author.
comment by admin
Post a Comment
Note: Only a member of this blog may post a comment.
Subscribe to Post Comments [Atom]
<< Home