Monday, February 26, 2018

JavaScript program : Showing a hidden HTML element

<!DOCTYPE html>
<html>
<body>

<h1>What Can JavaScript Do?</h1>

<p>JavaScript can show hidden HTML elements.</p>

<p id="demo" style="display:none">Hello JavaScript!</p>

<button id = hi type="button" onclick="document.getElementById('demo').style.display='block'">Click Me!</button>

</body>
</html>

Thanks
Happy programming!

No comments:

Post a Comment

How can I run a C++ program directly from Windows?

How-can-I-run-a-C-program-directly-from-Windows