Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

Hide HTML elements

<!DOCTYPE html>
<html>
<body>

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

<p id="demo">JavaScript can hide HTML elements.</p>

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

</body>
</html> 
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Hide #HTML #elements
ADD COMMENT
Topic
Name
9+9 =