Skip to content

Commit

Permalink
Completing Objective 2 of task 18
Browse files Browse the repository at this point in the history
  • Loading branch information
OutHackThem committed Dec 30, 2020
1 parent 7703b57 commit 1287f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JavaScript For Pentesters/Parsing/task18-html_parsing.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ req.onreadystatechange=function()
if (req.readyState == 4 && req.status == 200) {
var htmlPage = req.responseXML; /* fetch html */
var address = htmlPage.getElementById("address").innerHTML; /* use as DOM and extract addr */
alert(address);
document.getElementById('result').innerHTML = address; /* display the result in <div> */
}
}

Expand Down

0 comments on commit 1287f38

Please sign in to comment.