document.activeElement.id is not working
<p>I am developing an application  for device. and i want to know the current focused anchor.</p>

<p>for this i used <strong>document.activeElement.id</strong>. It is working fine on webkit but not working on older browser. 
So i used </p>

<pre><code>           $(":a").focus(function () {
            id = this.id;
                });
</code></pre>

<p>It is also not working. I go through meny website and i found that .focus method wil work for only <strong>input</strong> tag.</p>

<p>So please give me IDea  for this problem . If it will be  purely javascript it will be better .</p>

<p>Any help will be appricated</p>
