Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xhr = new XMLHttpRequest()
- xhr.withCredentials = true
- xhr.onreadystatechange = function()
- {
- if(xhr.readyState == 4)
- {
- console.log(xhr.status)
- if(xhr.status == 200)
- {
- console.log(2)
- var html = xhr.responseText
- var data = html.querySelector(".modification__list > a")
- console.log (data.length)
- }
- }
- }
- xhr.open('GET', url.href, true)
- xhr.send()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement