Get Width of <a> Element in Pixels

I’m curious.

Could you possibly post enough HTML/JS that I can recreate what you are doing. Or a link, if that’s possible.