Javascript visible hide hyperlink

Javascript visible hide hyperlink

  My friend asked me to write javascript that will hide itself by clicking on it and will be visible after 5 second
 here is simple code to reffer

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script>
   
    function xxx(a)
    {
    
     a.style.visibility="hidden";
    
     window.setInterval("visible()",5000);

    
    }
   
    function visible()
    {
     document.getElementById('p').style.visibility="visible";;
   
    }
   
    </script>
   
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <a href="#" onclick=xxx(this);    id="p" >click to disable</a>
    </div>
    </form>
</body>
</html>

Tags:

Online html editor online JavaScript editorPostback from JavaScriptJQuery Hide HTML ElementJavaScript For LoopHow To Hide Div On Click Using JQueryGridview select emailHide IPJquery hide show div exampleGridview HyperlinkJQuery Hyperlink ClickHow to hide FeedJit Widget

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.