Is it possible, with Javascript or some other technology to determine which hyperlink a user has clicked on, without changing the hyperlink source code.
For example: Can you click on a ‘tag’ button, then click on a hyperlink hosted in a different iframe, and be able to calculate which hyperlink the user clicked on, without changing any of the source code in that iframe?
Using jQuery, you are able to set the context of your selection. i.e.
$(‘a’, $(‘#iframe-id’)).click(function() {…});
You can then implement an event handler that will handle the iFrame hyperlink clicks. The ‘this’ property within the handler will allow you to interrogate the hyperlink and obtain properties such as innerText etc.