Detect if selected element is an anchor on right click
Posted
by Yawn
on Stack Overflow
See other posts from Stack Overflow
or by Yawn
Published on 2010-04-30T01:35:25Z
Indexed on
2010/04/30
1:37 UTC
Read the original article
Hit count: 277
I'm writing a small firefox addon to grab urls and send them to a site. What I want to do is be able to right click on a link (but not have to actually highlight it) and be able to click send and the links href value is grabbed and sent. The bit I'm having trouble with is detecting if the selected element is an anchor and grabbing it's href. Many thanks for any help given :)
© Stack Overflow or respective owner