Hello all,
Is it possible to change the style of all the links (<a>) in the page at once, using JS?
It is possible using DOM walk – finding the elements and changing their class/style. But is there a simpler way?
thank you, ?
Rami
<script type="text/javascript"> <!-- function highlightLinks () { var l, i = 0; while (l = document.links[i++]) {l.clasName = 'highlight'} } // --> </script>
Help @ramiab1 spread the word by sharing this article on Twitter...