Advertisement
zashkurka

Injecting DOM

May 12th, 2023
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let recentList = document.querySelector('#recent');
  2. let li = document.createElement('li');
  3. li.textContent = `<a href='${host.apiHost + searchItem[1]}' class='text-lg'>${searchItem[0]}</a>`;
  4. recentList.append(li);
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement