JavaScript & DHTML - How to get all the links on a HTML page with JavaScript?
Try the following (see example below) script by putting it on page where there are at least one hyperlink (for example <ahref="http://zamov.online.fr">zamov.online.fr</a> ) <script> for (i=0; i < document.links.length; i++) { alert(document.links[i].href); } </script>
Category: | JavaScript & DHTML |
<< Go back