HOW HIDE WEBSITE CONTENTS USING JAVA SCRIPT


HOW HIDE WEBSITE CONTENTS USING JAVA SCRIPT

Use of JavaScript in website

For hide a div , or block ,image.etc.. use javacript is very easy

Step 1,give id to div (the thing you want to hide)



<script>
function display Result()
{
document.getElementById("yourid").style.display="none";
}
</script>


Step 2, copy this code
Replace your id with your image,div, id
Its hidden
You can use this in blog ,if you want to hide some block to hide in some pages
Also
On new post html copy this and use the id
Then only that page its hidden



Comments