I don’t know what I know.
I assume this will be open when you click on some element on the page. The best thing is to capture this event.
Given your anchor:
<a id="MyLink" href="MyDoc.doc">
A simple mouse click will capture this event before the text above appears.
$(document).ready(function(){ $("#MyLink").click(function() { alert($(this).length); }); });
source share