Question: Design a HTML page to display a picture. The picture should be removed from the screen after a mouse click on the picture.
|
Output

Another Method to solve this
<html>
<body>
<img src="image.jpg" id="image" onclick="removeImage()">
<script>
function removeImage() {
// get the image element
var image = document.getElementById("image");
// remove the image from the page
image.parentNode.removeChild(image);
}
</script>
</body>
</html>
Output:
Image par click karke jarur dekhen
เคเคธ html เคोเคก เคฎें เคाเคตाเคธ्เค्เคฐिเคช्เค เคा เคเคธ्เคคेเคฎाเคฒ เคिเคฏा เคเคฏा เคนै เคिเคธเคฎे เคเค เคซंเค्เคถเคจ เคฌเคจाเคฏा เคเคฏा เคนै function(img) เคจाเคฎ เคธे, เคเคธเคฎें เคाเคตाเคธ्เค्เคฐिเคช्เค เคे เค เคจ्เคฆเคฐ css เคเคธ्เคคेเคฎाเคฒ เคिเคฏा เคเคฏा เคนै เคिเคธे JavaScript DOM เคเคนเคคे เคนै เคเคธเคा เคชूเคฐा เคจाเคฎ Document Object Model เคนोเคคा เคนै।

0 Comments
Please don't Add spam links,
if you want backlinks from my blog contact me on rakeshmgs.in@gmail.com