31.07.2015 Views

Download

Download

Download

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

180 Chapter 5 • XSS Attack Methodsdocument.body.removeChild(link);/* check to see if the link has been visited if the computed color is red */if (color == "rgb(255, 0, 0)") { // visited/* add the link to the visited list */var item = document.createElement('li');item.appendChild(link);document.getElementById('visited').appendChild(item);} else { // not visited/* add the link to the not visited list */var item = document.createElement('li');item.appendChild(link);document.getElementById('notvisited').appendChild(item);} // end visited color check if} // end URL loopFigure 5.1 Screenshot for JavaScript/CSS API “getComputedStyle”

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!