Advertisement
GochiSiyan

create button

Mar 17th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. (function(){
  2. button = document.createElement('div')
  3. link = document.createElement('a')
  4. link.setAttribute('href','test.com')
  5. link.innerText='remember to set the link'
  6. button.appendChild(link)
  7. document.querySelectorAll('.jeg_empty_module').forEach(function(value){
  8. value.appendChild(button.cloneNode(true))
  9. })
  10. })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement