var link = document.createElement("a");
link.id = "id" + i;
link.href = websites[i];
link.innerHTML = websites[i];
document.body.appendChild(link);
var color = document.defaultView.getComputedStyle(link,null).getPropertyValue("color");
document.body.removeChild(link);
if (color == "rgb(255, 0, 0)") // the site has been visited :)
demo - http://ha.ckers.org/weird/CSS-history-hack.html
No comments:
Post a Comment