Is there a way to retrieve the tag that called a javascript function if the anchor has a href tag of javascript:someFunc()
? I know that in the onclick
attribute, you can pass this
, but when called from the href tag, this
references the DOMWindow
. Unfortunately, I am restricted to using the href tag only in the code I'm working with. Does anyone have a solution or suggestion for this situation?