Blorner

Monday, January 11, 2010

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>

No comments:

Post a Comment

Art Works Expo