Disable all links by javascript

To disable all links of a web page add the script bellow just after </body>

<script type="text/javascript">
    var all_links = document.getElementsByTagName("a");
 
    for(var i=0; i<all_links.length; i++){
        all_links[i].removeAttribute("href");
    }
</script>
  • Share/Bookmark
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

*





Info