SHARE
TWEET

Untitled

a guest Dec 17th, 2011 20 Never
  1. var links = document.querySelectorAll("a");
  2. for (var i = 0; i < links.length; i++) {
  3.   parent = links[i].parentNode;
  4.   if (parent.nodeName == "div") {
  5.     alert("yes");
  6.   }
  7. }
RAW Paste Data
Top