Yngvarr

Generation

generate functionThu, 06 Apr 2023

get all links

function get_links() { var links = document.getElementsByTagName('a') for (var i = 0; i < links.length; i++) { console.log(links[i].href) } }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant