How to get all link in page by javascript

const themesEl = document.querySelectorAll( ".image-tools.grid-tools > a:first-child" );

for ( var i = 0; i < themesEl.length; i++ ) {
  let themeEl   = themesEl[i];
  let linkTheme = themeEl.href;
  
  console.log(linkTheme);
}

Leave a Reply

Your email address will not be published. Required fields are marked *