Posted By

brianyang on 02/01/11


Tagged


Versions (?)

Return Coordinates of Links on Page


 / Published in: JavaScript
 

  1. var links = document.getElementsByTagName("a");
  2. for(var i in links) {
  3. var link = links[i];
  4. console.log(link.offsetWidth, link.offsetHeight);
  5. }

Report this snippet  

You need to login to post a comment.