Advertisement
Guest User

Untitled

a guest
Aug 4th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. var xhr = new XMLHttpRequest()
  2. xhr.withCredentials = true
  3.  
  4. xhr.onreadystatechange = function()
  5. {
  6. if(xhr.readyState == 4)
  7. {
  8. console.log(xhr.status)
  9. if(xhr.status == 200)
  10. {
  11. console.log(2)
  12. var html = xhr.responseText
  13.  
  14. var data = html.querySelector(".modification__list > a")
  15. console.log (data.length)
  16.  
  17.  
  18.  
  19.  
  20. }
  21. }
  22. }
  23. xhr.open('GET', url.href, true)
  24. xhr.send()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement